aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorBart de Water <bartdewater@gmail.com>2018-04-23 22:44:20 -0400
committerBart de Water <bartdewater@gmail.com>2018-04-23 22:45:14 -0400
commit7a5886b2b8f18eaec1b858b2ecbcd9e5403fa90d (patch)
tree4d2905c11d03182dba308a60c98e1729523005c6 /actionpack
parent76acaf6eb9ef3635e4c6f2ca9dba34edb50f541d (diff)
downloadrails-7a5886b2b8f18eaec1b858b2ecbcd9e5403fa90d.tar.gz
rails-7a5886b2b8f18eaec1b858b2ecbcd9e5403fa90d.tar.bz2
rails-7a5886b2b8f18eaec1b858b2ecbcd9e5403fa90d.zip
Use strict_encode64 instead of gsub newline for ScreenshotHelper
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb b/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb
index 2c8cee3a9b..d2685e0452 100644
--- a/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb
+++ b/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb
@@ -80,7 +80,7 @@ module ActionDispatch
end
def inline_base64(path)
- Base64.encode64(path).gsub("\n", "")
+ Base64.strict_encode64(path)
end
def failed?