spec/rake/funnel/tasks/quick_template_spec.rb in rake-funnel-0.22.1 vs spec/rake/funnel/tasks/quick_template_spec.rb in rake-funnel-0.22.2

- old
+ new

@@ -19,11 +19,11 @@ before do allow(finder).to receive(:all_or_default).and_return(templates) allow(Rake::Funnel::Support::Finder).to receive(:new).and_return(finder) allow(engine).to receive(:render).and_return('file content') - allow(Rake).to receive(:rake_output_message) + allow($stderr).to receive(:print) allow(File).to receive(:read).and_return('template content') allow(File).to receive(:write) end subject! { described_class.new } @@ -32,10 +32,10 @@ Rake::Task[subject.name].invoke end it 'should report created files' do templates.each do |template| - expect(Rake).to have_received(:rake_output_message).with("Creating file #{template.ext}") + expect($stderr).to have_received(:print).with("Creating file #{template.ext}\n") end end it 'should read all templates' do templates.each do |template|