ruby-changes:66837
From: Yusuke <ko1@a...>
Date: Mon, 19 Jul 2021 10:35:45 +0900 (JST)
Subject: [ruby-changes:66837] 91ffce8f24 (master): [ruby/did_you_mean] Prevent "warning: ambiguity between regexp and two divisions"
https://git.ruby-lang.org/ruby.git/commit/?id=91ffce8f24 From 91ffce8f24336f2dabb4e8b9efc3fe11738deda4 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 30 Jun 2021 13:39:45 +0900 Subject: [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 --- test/did_you_mean/spell_checking/test_uncorrectable_name_check.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/did_you_mean/spell_checking/test_uncorrectable_name_check.rb b/test/did_you_mean/spell_checking/test_uncorrectable_name_check.rb index 2fa65bb..9e83f6e 100644 --- a/test/did_you_mean/spell_checking/test_uncorrectable_name_check.rb +++ b/test/did_you_mean/spell_checking/test_uncorrectable_name_check.rb @@ -10,6 +10,6 @@ class UncorrectableNameCheckTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/did_you_mean/spell_checking/test_uncorrectable_name_check.rb#L10 end def test_message - assert_not_match /Did you mean\?/, @error.message + assert_not_match(/Did you mean\?/, @error.message) end end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/