1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

remove spaces to pass a test.

23d7f4c5e1 breaks a test which expect
to match error message. To avoid this failure, use #strip for expect
and actual results.
This commit is contained in:
Koichi Sasada 2019-12-01 12:24:50 +09:00
parent 23d7f4c5e1
commit 56faa13a1c

View file

@ -12,7 +12,7 @@ class VerboseFormatterTest < Test::Unit::TestCase
def test_message
@error = assert_raise(NoMethodError){ 1.zeor? }
assert_equal <<~MESSAGE.chomp, @error.message
assert_equal <<~MESSAGE.strip, @error.message.strip
undefined method `zeor?' for 1:Integer
Did you mean? zero?