Skip to content

Commit

Permalink
remove spaces to pass a test.
Browse files Browse the repository at this point in the history
23d7f4c breaks a test which expect
to match error message. To avoid this failure, use #strip for expect
and actual results.
  • Loading branch information
ko1 committed Dec 1, 2019
1 parent 23d7f4c commit 56faa13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/did_you_mean/test_verbose_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def teardown
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?
Expand Down

0 comments on commit 56faa13

Please sign in to comment.