Skip to content

Commit

Permalink
Ensure test is more reliable on Windows
Browse files Browse the repository at this point in the history
Adapt existing test to cover the corrections done in

Gem::Installer#check_that_user_bin_dir_is_in_path to workaround
case-insensitive PATH.
  • Loading branch information
luislavena committed Jun 24, 2012
1 parent e04fd34 commit bc69c61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/rubygems/test_gem_installer.rb
Expand Up @@ -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,
Expand Down

0 comments on commit bc69c61

Please sign in to comment.