spec/rake/funnel/tasks/zip_spec.rb in rake-funnel-0.22.1 vs spec/rake/funnel/tasks/zip_spec.rb in rake-funnel-0.22.2
- old
+ new
@@ -20,11 +20,11 @@
allow(Rake::Funnel::Support::Finder).to receive(:new).and_return(finder)
end
before do
allow(Rake::Funnel::Support::Zipper).to receive(:zip)
- allow(Rake).to receive(:rake_output_message)
+ allow($stderr).to receive(:print)
end
subject do
described_class.new do |t|
t.source = source
@@ -41,11 +41,11 @@
expect(Rake::Funnel::Support::Zipper).to have_received(:zip)
.with(subject.source, subject.target, subject.zip_root)
end
it 'should report the created zip file' do
- expect(Rake).to have_received(:rake_output_message).with("Created #{subject.target}")
+ expect($stderr).to have_received(:print).with("Created #{subject.target}\n")
end
describe '#allow_empty' do
subject do
described_class.new do |t|
@@ -80,10 +80,10 @@
it 'should not invoker Zipper' do
expect(Rake::Funnel::Support::Zipper).not_to have_received(:zip)
end
it 'should warn' do
- expect(Rake).to have_received(:rake_output_message).with('No files to zip')
+ expect($stderr).to have_received(:print).with("No files to zip\n")
end
end
end
end
end