summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authorluislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-04 22:39:35 +0000
committerluislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-04 22:39:35 +0000
commit3ddef8e50c3f3a2a081c658d6efb9dcc6b4738d0 (patch)
tree264442a48597b21580a9892009117b4c975e7b39 /test/rubygems
parent69dac45244023db7b022c1e512214c45f3283a4d (diff)
Backported r32804 from trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32850 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"
}