diff --git a/spec/support/save_feature_failures.rb b/spec/support/save_feature_failures.rb index 8b1fb104..7cb73bc7 100644 --- a/spec/support/save_feature_failures.rb +++ b/spec/support/save_feature_failures.rb @@ -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)