Using Capybara and PhantomJS to Test an External Website
Capybara is a great way for performing
integration testing of web applications. Typically it is used in development with
and is unable to access HTTP resources outside of your Rack application.
Enter PhantomJS – a headless implementation of Webkit
way to get the two to talk together is via the Poltergeist gem.