This could be more integrated into the Rails dev/ci workflow.  Did you evaluate the casper gem?

https://rubygems.org/gems/casperjs