From bc69c61983caccfe8f635c3c10cf75c71b6c77e2 Mon Sep 17 00:00:00 2001 From: Luis Lavena Date: Sun, 24 Jun 2012 19:00:13 -0300 Subject: [PATCH] Ensure test is more reliable on Windows Adapt existing test to cover the corrections done in Gem::Installer#check_that_user_bin_dir_is_in_path to workaround case-insensitive PATH. --- test/rubygems/test_gem_installer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index 9783dbff3eb3..78c69bf7339e 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -277,7 +277,8 @@ def test_generate_bin_bindir end def test_generate_bin_bindir_with_user_install_warning - bin_dir = Gem.win_platform? ? File.expand_path(ENV["WINDIR"]) : "/usr/bin" + bin_dir = Gem.win_platform? ? File.expand_path(ENV["WINDIR"]).upcase : + "/usr/bin" options = { :bin_dir => bin_dir,