
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
The Jasmine Ruby Gem is a package of helper code for developing Jasmine projects for Ruby-based web projects (Rails, Sinatra, etc.) or for JavaScript projects where Ruby is a welcome partner. It serves up a project's Jasmine suite in a browser so you can focus on your code instead of manually editing script tags in the Jasmine runner HTML file.
This gem contains:
You can get all of this by: gem install jasmine
or by adding Jasmine to your Gemfile
.
To initialize a project for Jasmine, it depends on your web framework
For Rails2 support, use
script/generate jasmine
For Rails3 support, use
rails g jasmine:install
rails g jasmine:examples
For any other project (Sinatra, Merb, or something we don't yet know about) use
jasmine init
Start the Jasmine server:
rake jasmine
Point your browser to localhost:8888
. The suite will run every time this page is re-loaded.
Start Jasmine on a different port:
rake jasmine JASMINE_PORT=1337
Point your browser to localhost:1337
.
For Continuous Integration environments, add this task to the project build steps:
rake jasmine:ci
This uses Selenium to launch a browser and run the Jasmine suite. Then it uses RSpec to extract the results from the Jasmine reporter and write them to your build log. The browser used by selenium can be changed by setting the JASMINE_BROWSER environment variable (this might require additional webdriver dependencies).
Customize spec/javascripts/support/jasmine.yml
to enumerate the source files, stylesheets, and spec files you would like the Jasmine runner to include.
You may use dir glob strings.
This gem requires RSpec for the jasmine:ci
rake task to work. But this gem does not explicitly depend on any version of the RSpec gem.
If you're writing a Rails application then as long as you've installed RSpec before you install Jasmine and attempt a rake jasmine:ci
, then you will be fine.
If you're using another Ruby framework, or don't care about Ruby, then run
gem install rspec
before you attempt the CI task.
Jasmine Mailing list: jasmine-js@googlegroups.com Twitter: @jasminebdd
Please file issues here at Github
Copyright (c) 2008-2010 Pivotal Labs. This software is licensed under the MIT License.
FAQs
Unknown package
We found that jasmine-multi_json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.