Do something when a cucumber scenario fails
When your cukes fail, you might want to take a screenshot, or automatically open a pry. This can help when debugging flaky tests.
After do |scenario|
if scenario.failed?
# take a screen shot, or open a pry
end
end
Tweet