Fix bug in logging of screenshots of failed tests

Presumably this was a typo.
This commit is contained in:
Andrew Kvalheim 2020-04-05 10:16:40 -07:00 committed by Henne Vogelsang
parent 0646e41a82
commit 0df16e4773
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0

View file

@ -9,7 +9,7 @@ RSpec.configure do |config|
example_filename += '.html'
if RSpec.current_example.exception.present?
save_page(example_filename)
save_page(example_screenshotname)
save_screenshot(example_screenshotname)
# remove the file if the test starts working again
else
File.unlink(example_filename) if File.exist?(example_filename)