Sha256: f967a135577f9acb7035f3c1207ff140de659939ebac9f10dd3b6c928b4ea603
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 Bytes
Contents
require 'spec_helper' describe Heirloom do before do @logger_stub = stub 'logger', :info => true, :debug => true @config_mock = mock 'config' @config_mock.stub :logger => @logger_stub @extracter = Heirloom::Extracter.new :config => @config_mock end it "should extract the given archive object into the output directory" do @extracter.should_receive(:random_archive).and_return '/tmp/file' File.should_receive(:open).with('/tmp/file', 'w') Heirloom::Extracter.any_instance.should_receive(:`). with('tar xzf /tmp/file -C /output') File.should_receive(:delete).with '/tmp/file' @extracter.extract :archive => 'test', :output => '/output' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.5.0rc2 | spec/archive/extracter_spec.rb |