-
-
Save nakajima/dff2a429afff1c212416 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
World do |world| | |
def take_screenshot! | |
Webrat.configuration.mode == :selenium ? | |
save_and_open_screengrab : | |
save_and_open_page | |
end ; world | |
end | |
When /^I take a screenshot$/ do | |
take_screenshot! | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment