Sign in through GitHub

RailsCasts Pro episodes are now free!

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.
  • Download:
  • source codeProject Files in Zip (57 KB)
  • mp4Full Size H.264 Video (27.3 MB)
  • m4vSmaller H.264 Video (12.3 MB)
  • webmFull Size VP8 Video (13.5 MB)
  • ogvFull Size Theora Video (28.5 MB)