From a21e18d5080a2c4808330271885f5664a725d3f3 Mon Sep 17 00:00:00 2001 From: eileencodes Date: Tue, 4 Oct 2016 08:48:21 -0400 Subject: Appease Rubocop Rubocop / code climate don't like single quotes and prefer doubles. --- actionpack/lib/system_testing/test_helpers/screenshot_helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/system_testing/test_helpers/screenshot_helper.rb') diff --git a/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb b/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb index a74ebb8cae..eeade229df 100644 --- a/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb +++ b/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb @@ -30,7 +30,7 @@ module SystemTesting end def find_image - if ENV['CAPYBARA_INLINE_SCREENSHOT'] == 'artifact' + if ENV["CAPYBARA_INLINE_SCREENSHOT"] == "artifact" "\e]1338;url=artifact://#{image_path}\a" else name = inline_base64(File.basename(image_path)) @@ -40,9 +40,8 @@ module SystemTesting end def inline_base64(path) - Base64.encode64(path).gsub("\n",'') + Base64.encode64(path).gsub("\n", "") end end end end - -- cgit v1.2.3