agaskar.com

May 30 2009

Introducing … JAZZ HANDS

Jazzhands is a set of scripts and tasks that helps integrate the Jasmine javascript testing framework into your rails project. It’s still in a very early stage, so there’s not a lot of documentation, but you can create a project with integrated javascript unit testing (assuming you already have rspec installed on your machine) by doing the following:

rails ./some-project
cd ./some-project

script/generate rspec
script/plugin install git://github.com/thatcher/env-js.git
script/plugin install git://github.com/pivotal/jasmine.git
script/plugin install git://github.com/ragaskar/jazzhands.git


after that you can

rake spec

or

rake javascript


Try it out and let me know what you think!

Comments (View)
Page 1 of 1
blog comments powered by Disqus