diff --git a/ChangeLog b/ChangeLog index 1e5be26d92..d058c99cfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 8 10:44:44 2013 Eric Hodel + + * test/rubygems/test_gem_dependency_installer.rb: Improve coverage of + --install-dir feature of gem install. + Fri Feb 8 10:11:09 2013 Eric Hodel * lib/rubygems/config_file.rb: Add missing require for diff --git a/test/rubygems/test_gem_dependency_installer.rb b/test/rubygems/test_gem_dependency_installer.rb index bbab5fe91e..d515505922 100644 --- a/test/rubygems/test_gem_dependency_installer.rb +++ b/test/rubygems/test_gem_dependency_installer.rb @@ -500,16 +500,21 @@ class TestGemDependencyInstaller < Gem::TestCase util_setup_gems FileUtils.mv @a1_gem, @tempdir + FileUtils.mv @b1_gem, @tempdir + + inst = Gem::Installer.new @a1.file_name + inst.install + gemhome2 = File.join @tempdir, 'gemhome2' Dir.mkdir gemhome2 inst = nil Dir.chdir @tempdir do inst = Gem::DependencyInstaller.new :install_dir => gemhome2 - inst.install 'a' + inst.install 'b' end - assert_equal %w[a-1], inst.installed_gems.map { |s| s.full_name } + assert_equal %w[a-1 b-1], inst.installed_gems.map { |s| s.full_name } assert File.exist?(File.join(gemhome2, 'specifications', @a1.spec_name)) assert File.exist?(File.join(gemhome2, 'cache', @a1.file_name))