aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_installer.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-25 03:26:36 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-25 03:26:36 +0000
commit369697bcebcfd05a2b7d541d59a85fa529cfe6c9 (patch)
tree84ee86a60d6ec70522b79996c5d5d7ca2c068a45 /test/rubygems/test_gem_installer.rb
parentf90fdbfc73ff41570a068b410692acd4812ef9f5 (diff)
downloadruby-369697bcebcfd05a2b7d541d59a85fa529cfe6c9.tar.gz
Import fast-loading gem_prelude.rb from RubyGems.
Import RubyGems r1516. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_installer.rb')
-rw-r--r--test/rubygems/test_gem_installer.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb
index 05e38f67f8..9a091a291e 100644
--- a/test/rubygems/test_gem_installer.rb
+++ b/test/rubygems/test_gem_installer.rb
@@ -417,8 +417,8 @@ load 'my_exec'
end
def test_generate_bin_symlinks_win32
- old_arch = Config::CONFIG["arch"]
- Config::CONFIG["arch"] = "win32"
+ old_win_platform = Gem.win_platform?
+ Gem.win_platform = true
@installer.wrappers = false
util_make_exec
@installer.gem_dir = util_gem_dir
@@ -431,16 +431,13 @@ load 'my_exec'
installed_exec = File.join(util_inst_bindir, "my_exec")
assert_equal true, File.exist?(installed_exec)
- assert_match(/Unable to use symlinks on win32, installing wrapper/i,
+ assert_match(/Unable to use symlinks on Windows, installing wrapper/i,
@ui.error)
-
- expected_mode = win_platform? ? 0100644 : 0100755
- assert_equal expected_mode, File.stat(installed_exec).mode
wrapper = File.read installed_exec
assert_match(/generated by RubyGems/, wrapper)
ensure
- Config::CONFIG["arch"] = old_arch
+ Gem.win_platform = old_win_platform
end
def test_generate_bin_uses_default_shebang