Skip to content

Commit 6a84b0a

Browse files
committed
Avoid undefined String#squish in Rails::TestUnit
Fix: rails#54487 We could also load the method, but it doesn't seem really necessary here. Might as well simpligy the code.
1 parent 4c91611 commit 6a84b0a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

railties/lib/rails/test_unit/runner.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ module Rails
1111
module TestUnit
1212
class InvalidTestError < StandardError
1313
def initialize(path, suggestion)
14-
super(<<~MESSAGE.squish)
15-
Could not load test file: #{path}.
16-
#{suggestion}
17-
MESSAGE
14+
super("Could not load test file: #{path}. #{suggestion}")
1815
end
1916
end
2017

0 commit comments

Comments
 (0)