diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-01 21:50:14 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-01 21:50:14 +0000 |
commit | effdbf5936cc090a618e13c8f9a1b5412ebab2fa (patch) | |
tree | c8410a18cbbe7ad013470fc06fef0c75ce0fd230 /test/rubygems/test_gem_commands_pristine_command.rb | |
parent | 9c4ef4b191a1e6b9abdbb21c7c709d1d0f2397e6 (diff) | |
download | ruby-effdbf5936cc090a618e13c8f9a1b5412ebab2fa.tar.gz |
* lib/rubygems: Update to RubyGems HEAD(c202db2).
this version contains many enhancements see http://git.io/vtNwF
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_commands_pristine_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_pristine_command.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_commands_pristine_command.rb b/test/rubygems/test_gem_commands_pristine_command.rb index ec5f3ad186..7c0109be2c 100644 --- a/test/rubygems/test_gem_commands_pristine_command.rb +++ b/test/rubygems/test_gem_commands_pristine_command.rb @@ -103,10 +103,12 @@ class TestGemCommandsPristineCommand < Gem::TestCase assert_path_exists gem_exec + ruby_exec = sprintf Gem.default_exec_format, 'ruby' + if win_platform? - assert_match %r%\A#!\s*ruby%, File.read(gem_exec) + assert_match %r%\A#!\s*#{ruby_exec}%, File.read(gem_exec) else - assert_match %r%\A#!\s*/usr/bin/env ruby%, File.read(gem_exec) + assert_match %r%\A#!\s*/usr/bin/env #{ruby_exec}%, File.read(gem_exec) end end @@ -151,10 +153,11 @@ class TestGemCommandsPristineCommand < Gem::TestCase ext_path = File.join @tempdir, 'ext', 'a', 'extconf.rb' write_file ext_path do |io| - io.write '# extconf.rb' + io.write "# extconf.rb\nrequire 'mkmf'; create_makefile 'a'" end util_build_gem a + install_gem a @cmd.options[:args] = %w[a] @cmd.options[:extensions] = false @@ -403,7 +406,7 @@ class TestGemCommandsPristineCommand < Gem::TestCase end def test_execute_unknown_gem_at_remote_source - util_spec 'a' + install_specs util_spec 'a' @cmd.options[:args] = %w[a] @@ -442,9 +445,10 @@ class TestGemCommandsPristineCommand < Gem::TestCase def test_execute_bundled_gem_on_old_rubies util_set_RUBY_VERSION '1.9.3', 551 - util_spec 'bigdecimal', '1.1.0' do |s| + spec = util_spec 'bigdecimal', '1.1.0' do |s| s.summary = "This bigdecimal is bundled with Ruby" end + install_specs spec @cmd.options[:args] = %w[bigdecimal] |