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

Use assert_not_match "Did you mean?" for UncorrectableNameCheckTest

... instead of exact matching. I'm now creating a built-in gem that
modifies Exception's error message, so the expectation value is changed.

IMO, it is good to check that did_you_mean suggestion is NOT added in
the uncorrectable case.

https://github.com/ruby/did_you_mean/commit/ebe88ec4d2
This commit is contained in:
Yusuke Endoh 2021-06-18 17:54:02 +09:00
parent 809f120374
commit 39f99b8176

View file

@ -10,6 +10,6 @@ class UncorrectableNameCheckTest < Test::Unit::TestCase
end
def test_message
assert_equal "Other name error", @error.message
assert_not_match /Did you mean\?/, @error.message
end
end