From 0df16e477351ba851cad81f59a5f722ffdd2947c Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Sun, 5 Apr 2020 10:16:40 -0700 Subject: [PATCH] Fix bug in logging of screenshots of failed tests Presumably this was a typo. --- spec/support/save_feature_failures.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)