aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-08-26 13:40:18 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-08-26 13:42:22 +0900
commit1fe777ef778ee8de88094cef2ff85363648ade51 (patch)
tree04b76d33243324d3551174dc7a52c21fc4f06ee2 /actionpack/lib
parent938b9ea40853f4f1525fad2a3e11e94273dc8ff1 (diff)
downloadrails-1fe777ef778ee8de88094cef2ff85363648ade51.tar.gz
rails-1fe777ef778ee8de88094cef2ff85363648ade51.tar.bz2
rails-1fe777ef778ee8de88094cef2ff85363648ade51.zip
Fix `can't modify frozen String` error in `display_image`
Without this, `display_image` raises an error as follwing: ``` RuntimeError: can't modify frozen String rails/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb:72:in `display_image' rails/actionpack/test/dispatch/system_testing/screenshot_helper_test.rb:40:in `block (2 levels) in <class:ScreenshotHelperTest>' ```
Diffstat (limited to 'actionpack/lib')
-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 a0203d26ae..7efdeb4e7b 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
@@ -65,7 +65,7 @@ module ActionDispatch
end
def display_image
- message = "[Screenshot]: #{image_path}\n"
+ message = "[Screenshot]: #{image_path}\n".dup
case output_type
when "artifact"