diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2019-04-19 10:30:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-19 10:30:59 -0400 |
commit | 612af1926c4501cf66dd1d8ea5b923bb80cf4bb1 (patch) | |
tree | 54ba8e52d15c77c8745d930bb0a269cc1a0b168d /actionpack/lib/action_dispatch | |
parent | 5e77be32a86320a20478073b2a34b5ea7aef2aed (diff) | |
parent | 51cb5d4a2078a2139f58d1bac964f2844dd0ac19 (diff) | |
download | rails-612af1926c4501cf66dd1d8ea5b923bb80cf4bb1.tar.gz rails-612af1926c4501cf66dd1d8ea5b923bb80cf4bb1.tar.bz2 rails-612af1926c4501cf66dd1d8ea5b923bb80cf4bb1.zip |
Merge pull request #36000 from JosiMcClellan/fix-screenshot-filenames
handle long or duplicated screenshot filenames
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb | 3 |
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 |