mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/rubygems/test_gem_dependency_installer.rb: Avoid Dir.chdir + block
This caused a warning "conflicting chdir during another chdir block" during "make test-all". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
891d00b492
commit
99cc20519b
1 changed files with 5 additions and 1 deletions
|
@ -445,9 +445,13 @@ class TestGemDependencyInstaller < Gem::TestCase
|
|||
FileUtils.mv f1_gem, @tempdir
|
||||
inst = nil
|
||||
|
||||
Dir.chdir @tempdir do
|
||||
pwd = Dir.getwd
|
||||
Dir.chdir @tempdir
|
||||
begin
|
||||
inst = Gem::DependencyInstaller.new
|
||||
inst.install 'f'
|
||||
ensure
|
||||
Dir.chdir pwd
|
||||
end
|
||||
|
||||
assert_equal %w[f-1], inst.installed_gems.map { |s| s.full_name }
|
||||
|
|
Loading…
Add table
Reference in a new issue