summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authorluislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-01 21:22:13 +0000
committerluislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-01 21:22:13 +0000
commit9e49d29e0801e9d6543339cedfc373dadae7773a (patch)
treeec61107018c6a3dc527f497f88e10b26a1d6f08d /test/rubygems
parent4d9c0998cfa9acb8a1751b6ed6c6e47b9c1fe45e (diff)
Correct RubyGems bin check on Windows. Bug #5111
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_installer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb
index d3791d7911..3c6fb45589 100644
--- a/test/rubygems/test_gem_installer.rb
+++ b/test/rubygems/test_gem_installer.rb
@@ -208,9 +208,10 @@ load Gem.bin_path('a', 'executable', version)
end
def test_generate_bin_bindir_with_user_install_warning
+ bin_dir = Gem.win_platform? ? File.expand_path(ENV["WINDIR"]) : "/usr/bin"
options = {
- :bin_dir => "/usr/bin",
+ :bin_dir => bin_dir,
:install_dir => "/non/existant"
}