aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorJosi McClellan <josiahmcclellan07@gmail.com>2019-04-18 15:20:22 -0500
committerJosi McClellan <josiahmcclellan07@gmail.com>2019-04-18 15:20:22 -0500
commit51cb5d4a2078a2139f58d1bac964f2844dd0ac19 (patch)
tree53116d03758b5a432993af423da247fc454f0232 /actionpack/lib/action_dispatch
parent0f39a7488ed736a76cc6cee166fba01d1e3c5686 (diff)
downloadrails-51cb5d4a2078a2139f58d1bac964f2844dd0ac19.tar.gz
rails-51cb5d4a2078a2139f58d1bac964f2844dd0ac19.tar.bz2
rails-51cb5d4a2078a2139f58d1bac964f2844dd0ac19.zip
truncate screenshot filenames to avoid error
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb3
1 files changed, 2 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 79359a0c8b..056ce51a61 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
@@ -39,7 +39,8 @@ module ActionDispatch
private
def image_name
- failed? ? "failures_#{method_name}" : method_name
+ name = method_name[0...225]
+ failed? ? "failures_#{name}" : name
end
def image_path