summaryrefslogtreecommitdiff
path: root/test/did_you_mean
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-12-01 12:24:50 +0900
committerKoichi Sasada <ko1@atdot.net>2019-12-01 12:24:50 +0900
commit56faa13a1c5261a0d046a4c0203e88fccfafae17 (patch)
tree735161f08764a89b1c0457ce4b6f94ead370e02a /test/did_you_mean
parent23d7f4c5e1ce164e78d77de694dccc0c41f6de3d (diff)
remove spaces to pass a test.
23d7f4c5e1ce164e78d77de694dccc0c41f6de3d breaks a test which expect to match error message. To avoid this failure, use #strip for expect and actual results.
Diffstat (limited to 'test/did_you_mean')
-rw-r--r--test/did_you_mean/test_verbose_formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/did_you_mean/test_verbose_formatter.rb b/test/did_you_mean/test_verbose_formatter.rb
index 098abf9..f850327 100644
--- a/test/did_you_mean/test_verbose_formatter.rb
+++ b/test/did_you_mean/test_verbose_formatter.rb
@@ -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?