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:
parent
809f120374
commit
39f99b8176
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue