Send string, not pathname, to Minitar for decompression

This commit is contained in:
Mitchell Hashimoto 2010-09-12 14:00:48 -07:00
parent 5ce43a8ae0
commit 79b303a1fc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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