aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2016-10-04 08:48:21 -0400
committereileencodes <eileencodes@gmail.com>2017-02-20 15:07:33 -0500
commita21e18d5080a2c4808330271885f5664a725d3f3 (patch)
tree4b82d8843fdddf71263eecd72c676fe3d8902d6e /actionpack/lib/system_testing/test_helpers/screenshot_helper.rb
parentc83e6d36dd13baa8b8cb48ce1c628788a2456d21 (diff)
downloadrails-a21e18d5080a2c4808330271885f5664a725d3f3.tar.gz
rails-a21e18d5080a2c4808330271885f5664a725d3f3.tar.bz2
rails-a21e18d5080a2c4808330271885f5664a725d3f3.zip
Appease Rubocop
Rubocop / code climate don't like single quotes and prefer doubles.
Diffstat (limited to 'actionpack/lib/system_testing/test_helpers/screenshot_helper.rb')
-rw-r--r--actionpack/lib/system_testing/test_helpers/screenshot_helper.rb5
1 files changed, 2 insertions, 3 deletions
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
-