alphagov/whitehall — pull request #631 by gma (2013-07-02 12:14:49+00:00)
Title: Add screenshot helper for cucumber @javascript scenarios

Call `screenshot` within a Cucumber step and Poltergeist (the capybara
driver) will create a tmp/capybara.png file containing a screenshot of
the current page. Pass an argument to give the screenshot a different
name.

Useful when debugging failing steps.