spec/rake/funnel/support/trace_spec.rb in rake-funnel-0.22.1 vs spec/rake/funnel/support/trace_spec.rb in rake-funnel-0.22.2

- old
+ new

@@ -1,19 +1,19 @@ describe Rake::Funnel::Support::Trace do before do - allow(Rake).to receive(:rake_output_message) + allow($stderr).to receive(:print) end context 'Rake run with --trace' do before do allow(Rake.application.options).to receive(:trace).and_return(true) end it 'should write messages' do described_class.message('foo') - expect(Rake).to have_received(:rake_output_message).with('foo') + expect($stderr).to have_received(:print).with("foo\n") end end context 'Rake run without --trace' do before do @@ -21,9 +21,9 @@ end it 'should not write messages' do described_class.message('foo') - expect(Rake).not_to have_received(:rake_output_message) + expect($stderr).not_to have_received(:print) end end end