ruby-changes:66262
From: Yusuke <ko1@a...>
Date: Tue, 18 May 2021 19:07:57 +0900 (JST)
Subject: [ruby-changes:66262] ceea1ea8af (master): test/rubygems/test_gem_commands_open_command.rb: prevent a warning
https://git.ruby-lang.org/ruby.git/commit/?id=ceea1ea8af From ceea1ea8af2376845f5f6164e9432e5b9845c033 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 18 May 2021 19:06:48 +0900 Subject: 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 ``` --- test/rubygems/test_gem_commands_open_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_commands_open_command.rb b/test/rubygems/test_gem_commands_open_command.rb index 2c32b81..e7be555 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 https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_open_command.rb#L21 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' -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/