summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_open_command.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-05-18 19:06:48 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-05-18 19:06:48 +0900
commitceea1ea8af2376845f5f6164e9432e5b9845c033 (patch)
tree15c6eabcbce266dfa875e6de5d4005bf5565c37f /test/rubygems/test_gem_commands_open_command.rb
parent837cbea64b74d464bfbfb10e6c81a8f92c6eee71 (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/rubygems/test_gem_commands_open_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_open_command.rb2
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'