Send string, not pathname, to Minitar for decompression
This commit is contained in:
parent
5ce43a8ae0
commit
79b303a1fc
|
@ -46,7 +46,7 @@ module Vagrant
|
|||
def decompress
|
||||
Dir.chdir(@env["box"].directory) do
|
||||
@env.ui.info "vagrant.actions.box.unpackage.extracting"
|
||||
Archive::Tar::Minitar.unpack(@env["download.temp_path"], @env["box"].directory)
|
||||
Archive::Tar::Minitar.unpack(@env["download.temp_path"], @env["box"].directory.to_s)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -70,7 +70,7 @@ class UnpackageBoxActionTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
should "open the tar file within the new directory, and extract it all" do
|
||||
Archive::Tar::Minitar.expects(:unpack).with(@env["download.temp_path"], @env["box"].directory).once
|
||||
Archive::Tar::Minitar.expects(:unpack).with(@env["download.temp_path"], @env["box"].directory.to_s).once
|
||||
@instance.decompress
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue