summaryrefslogtreecommitdiff
path: root/test/did_you_mean
diff options
context:
space:
mode:
authorYuki Nishijima <yk.nishijima@gmail.com>2019-11-30 22:29:02 -0500
committerYuki Nishijima <yk.nishijima@gmail.com>2019-11-30 22:29:02 -0500
commitcc7455dd1e98e297dbea2fd92e491bd36f1b473e (patch)
tree52a4c2644d508925b9845f71c2453f9e4452d738 /test/did_you_mean
parent56faa13a1c5261a0d046a4c0203e88fccfafae17 (diff)
Relax test requirements for DYM's verbose formatter
Diffstat (limited to 'test/did_you_mean')
-rw-r--r--test/did_you_mean/test_verbose_formatter.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/did_you_mean/test_verbose_formatter.rb b/test/did_you_mean/test_verbose_formatter.rb
index f850327..6639d60 100644
--- a/test/did_you_mean/test_verbose_formatter.rb
+++ b/test/did_you_mean/test_verbose_formatter.rb
@@ -12,11 +12,10 @@ class VerboseFormatterTest < Test::Unit::TestCase
def test_message
@error = assert_raise(NoMethodError){ 1.zeor? }
- assert_equal <<~MESSAGE.strip, @error.message.strip
+ assert_match <<~MESSAGE.strip, @error.message
undefined method `zeor?' for 1:Integer
Did you mean? zero?
-
MESSAGE
end
end