diff options
Diffstat (limited to 'spec/unit/module_tool/tar/mini_spec.rb')
-rw-r--r-- | spec/unit/module_tool/tar/mini_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/module_tool/tar/mini_spec.rb b/spec/unit/module_tool/tar/mini_spec.rb index ef030611b..179952741 100644 --- a/spec/unit/module_tool/tar/mini_spec.rb +++ b/spec/unit/module_tool/tar/mini_spec.rb @@ -54,6 +54,7 @@ describe Puppet::ModuleTool::Tar::Mini, :if => (Puppet.features.minitar? and Pup reader = mock('GzipReader') Zlib::GzipReader.expects(:open).with(sourcefile).yields(reader) - Archive::Tar::Minitar.expects(:unpack).with(reader, destdir).yields(type, name, nil) + minitar.expects(:find_valid_files).with(reader).returns([name]) + Archive::Tar::Minitar.expects(:unpack).with(reader, destdir, [name]).yields(type, name, nil) end end |