Assume you have, like I did, a ruby gem that contains some javascript you want to test standalone.

First you need to install the jasmine-gem. You have two options:

either you use your gemspec to drive your bundler gemfile, so just add it to your developement dependencies

I am still using jeweler, so I use a normal Gemfile, which jeweler parses to populate my gemspec with. Personally I find this much easier, and my workflow is much closer to any ruby development for me, this way

If you have a rails-project, starting with jasmine is easy, and takes three easy steps: