RailsCasts Episode #261: Testing JavaScript with Jasmine (revised) http://railscasts.com/episodes/261-testing-javascript-with-jasmine-revised Requires Ruby 1.9.2 or higher. Commands used in this episode mkdir -p spec/javascripts brew install phantomjs guard init jasmine