Created
December 26, 2012 19:13
-
-
Save fletcherm/4382359 to your computer and use it in GitHub Desktop.
capybara-screenshot and RSpec configuration
This file contains hidden or 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
scenario 'closing the map and looking at it later', screenshot: true do | |
# ... | |
end |
This file contains hidden or 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
RSpec.configure do |c| | |
c.before(:each, type: :feature) do | |
Capybara::Screenshot.autosave_on_failure = example.metadata[:screenshot] | |
end | |
end |
This file contains hidden or 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
Capybara::Screenshot.autosave_on_failure = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment