diff options
author | David RodrÃguez <[email protected]> | 2023-03-02 18:24:25 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-03 13:43:59 +0900 |
commit | 90b74d8c65037a04c07a8e8ce852a55257151236 (patch) | |
tree | 8cc1dbb777ae809d6d71a3a17d528ca0ea96bab8 /test/rubygems/test_gem_commands_exec_command.rb | |
parent | 7fea848568741439c2ff25db4e03a607046b4ed8 (diff) |
[rubygems/rubygems] Fix warning about ambiguous `/`
```
/path/to/rubygems/test/rubygems/test_gem_commands_exec_command.rb:745: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
```
https://github.com/rubygems/rubygems/commit/e6a538b5c8
Diffstat (limited to 'test/rubygems/test_gem_commands_exec_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_exec_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_commands_exec_command.rb b/test/rubygems/test_gem_commands_exec_command.rb index 7902e44eb5..b00f3f41f8 100644 --- a/test/rubygems/test_gem_commands_exec_command.rb +++ b/test/rubygems/test_gem_commands_exec_command.rb @@ -739,7 +739,7 @@ class TestGemCommandsExecCommand < Gem::TestCase invoke "gem", "list", "--local" assert_empty @ui.error - assert_match /\A\s*\** LOCAL GEMS \**\s*\z/m, @ui.output + assert_match(/\A\s*\** LOCAL GEMS \**\s*\z/m, @ui.output) invoke "gem", "env", "GEM_HOME" assert_equal "#{@gem_home}/gem_exec\n", @ui.output |