Sha256: db243d0373391f6073e7afbfc45f095af2cece1451a5c49f8a7c8cc0fa41c0b7
Contents?: true
Size: 692 Bytes
Versions: 5
Compression:
Stored size: 692 Bytes
Contents
describe Stevenson::OutputFilter::Zip do let(:temporary_directory) { '/tmp/directory' } let(:template) { double(:template, local_directory: temporary_directory) } subject { described_class.new(template.local_directory) } describe '#output' do let(:output_zip) { "#{temporary_directory}.zip" } it "should zip the files in temporary_directory to the zip" do expect(subject).to receive(:write).with(temporary_directory, output_zip).and_return(true) subject.output end it "should return the temporary_directory with '.zip' appended" do allow(subject).to receive(:write).and_return(true) expect(subject.output).to eq output_zip end end end
Version data entries
5 entries across 5 versions & 1 rubygems