diff options
author | Yusuke Endoh <[email protected]> | 2021-05-18 19:06:48 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2021-05-18 19:06:48 +0900 |
commit | ceea1ea8af2376845f5f6164e9432e5b9845c033 (patch) | |
tree | 15c6eabcbce266dfa875e6de5d4005bf5565c37f /test | |
parent | 837cbea64b74d464bfbfb10e6c81a8f92c6eee71 (diff) |
test/rubygems/test_gem_commands_open_command.rb: prevent a warning
http://rubyci.s3.amazonaws.com/debian9/ruby-master/log/20210518T093002Z.log.html.gz
```
[ 9396/21186] TestGemCommandsOpenCommand#test_execute-e:1: warning: possibly useless use of a literal in void context
= 0.06 s
```
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_commands_open_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_commands_open_command.rb b/test/rubygems/test_gem_commands_open_command.rb index 2c32b810cc..e7be555dd3 100644 --- a/test/rubygems/test_gem_commands_open_command.rb +++ b/test/rubygems/test_gem_commands_open_command.rb @@ -21,7 +21,7 @@ class TestGemCommandsOpenCommand < Gem::TestCase def test_execute @cmd.options[:args] = %w[foo] - @cmd.options[:editor] = "#{Gem.ruby} -e0 --" + @cmd.options[:editor] = "#{Gem.ruby} -eexit --" gem 'foo', '1.0.0' spec = gem 'foo', '1.0.1' |