Skip to content

Commit f945152

Browse files
author
Sam Phippen
committed
Truncate method names in system tests
1 parent 678b313 commit f945152

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rspec/rails/example/system_example_group.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def method_name
3737
@method_name ||= [
3838
self.class.name.underscore,
3939
RSpec.current_example.description.underscore,
40-
rand(1000)
41-
].join("_").tr(CHARS_TO_TRANSLATE.join, "_")
40+
].join("_").tr(CHARS_TO_TRANSLATE.join, "_")[0...251] + "_#{rand(1000)}"
4241
end
4342

4443
# Delegates to `Rails.application`.

0 commit comments

Comments
 (0)