Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Testing JavaScript with PhantomJS

#391 Testing JavaScript with PhantomJS pro

Nov 07, 2012 | 10 minutes | Testing, Tools, Plugins
PhantomJS allows us to test JavaScript without going through a browser window. Here I show how to do this using Capybara and Poltergeist. I also give some tips on handling database transactions and skipping javascript tests.