This is a nice and handy, RSpec powered runner and reporter for Jasmine
test suites. It's simpler and more flexible than stuff provided by
gem. Here's how it looks like:
NOTE: It works only with RSpec 2.0 and higher.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install rspec-jasmine
Check the example folder, it's the simples setup of
with dummy Sinatra app. The most important files to check are
Rakefile. To run your tests use rake task:
$ rake spec:jasmine
You'll get nice output, formatted with your favorite RSpec formatter.
Probably I should write a generator for this stuff, but so far this is used only in one project so I'm too lazy for it. If you have spare time you can do so and send me a pull request.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request