Skip to content

Commit 17b9ca8

Browse files
authored
Merge pull request rails#54488 from byroot/fix-test-runner-squish
Avoid undefined String#squish in Rails::TestUnit
2 parents 4c91611 + 6a84b0a commit 17b9ca8

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)