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

[ruby/did_you_mean] Prevent "warning: ambiguity between regexp and two divisions"

```
test/did_you_mean/spell_checking/test_uncorrectable_name_check.rb:13: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
```
http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20210630T033005Z.log.html.gz#test-all

https://github.com/ruby/did_you_mean/commit/842ede4186
This commit is contained in:
Yusuke Endoh 2021-06-30 13:39:45 +09:00
parent bac5ec0f06
commit 91ffce8f24

View file

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