diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-23 00:38:52 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-23 00:38:52 +0000 |
commit | 7114f99c00e7425a6a6f086da208aa39c513e67e (patch) | |
tree | b7564eaa46c0d511f2021ad136b7df8015c66c9c /test/rubygems | |
parent | d64d5dcf83d9e255fab36d70e0418c8f9474df27 (diff) | |
download | ruby-7114f99c00e7425a6a6f086da208aa39c513e67e.tar.gz |
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
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_commands_setup_command.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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") |