From a1799f1f71cfcb7cbb8adf9004a4519f252c6a3e Mon Sep 17 00:00:00 2001 From: hsbt Date: Sat, 23 Dec 2017 00:38:52 +0000 Subject: [PATCH] Avoid to warnings about gemspec loadings in rubygems tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_commands_setup_command.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index 433b60df16..2136edb1be 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -41,7 +41,8 @@ class TestGemCommandsSetupCommand < Gem::TestCase end open(File.join(Gem::Specification.default_specifications_dir, "bundler-1.15.4.gemspec"), 'w') do |io| - io.puts '# bundler' + gemspec.version = "1.15.4" + io.puts gemspec.to_ruby end FileUtils.mkdir_p File.join(Gem.default_dir, "specifications")