зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
8bb45796c8
Коммит
c5d1d12977
|
@ -1,3 +1,8 @@
|
|||
Fri Feb 8 10:44:44 2013 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* 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 <drbrain@segment7.net>
|
||||
|
||||
* lib/rubygems/config_file.rb: Add missing require for
|
||||
|
|
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче