summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-08 01:58:59 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-08 01:58:59 +0000
commitc5d1d12977c17895cb5fbbbd3cb7a51367b90eac (patch)
tree4c635a414fca87e5414936da4b43fabee1cf2953 /test
parent8bb45796c87603fe2a70885dfea3a3622f4104a5 (diff)
downloadruby-c5d1d12977c17895cb5fbbbd3cb7a51367b90eac.tar.gz
* test/rubygems/test_gem_dependency_installer.rb: Improve coverage of
--install-dir feature of gem install. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_dependency_installer.rb9
1 files changed, 7 insertions, 2 deletions
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))