From 7a5886b2b8f18eaec1b858b2ecbcd9e5403fa90d Mon Sep 17 00:00:00 2001 From: Bart de Water Date: Mon, 23 Apr 2018 22:44:20 -0400 Subject: [PATCH] Use strict_encode64 instead of gsub newline for ScreenshotHelper --- .../system_testing/test_helpers/screenshot_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?