summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_setup_command.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-23 00:38:52 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-23 00:38:52 +0000
commita1799f1f71cfcb7cbb8adf9004a4519f252c6a3e (patch)
treeb7564eaa46c0d511f2021ad136b7df8015c66c9c /test/rubygems/test_gem_commands_setup_command.rb
parentd783148c7faf97e50a94d8d0aca38ae5bd52a62e (diff)
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/test_gem_commands_setup_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_setup_command.rb3
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")