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

- old
+ new

@@ -33,20 +33,20 @@ OpenStruct.new(success?: false) ] end before do - allow(described_class).to receive(:warn) + allow($stderr).to receive(:print) end it 'finds nothing' do expect { described_class.find }.to raise_error('No compatible MSBuild build tool was found') end it 'warns about the crash' do described_class.find rescue nil # rubocop:disable Style/RescueModifier - expect(described_class).to have_received(:warn).with(/^vswhere failed:/) + expect($stderr).to have_received(:print).with(/^vswhere failed:/) end end describe 'MSBuild executable' do let(:vswhere_path) do @@ -156,19 +156,19 @@ OpenStruct.new(success?: false) ] end before do - allow(described_class).to receive(:warn) + allow($stderr).to receive(:print) end it 'finds nothing' do expect { described_class.find }.to raise_error('No compatible MSBuild build tool was found') end it 'warns about the crash' do described_class.find rescue nil # rubocop:disable Style/RescueModifier - expect(described_class).to have_received(:warn).with(/^Could not determine mono version:/) + expect($stderr).to have_received(:print).with(/^Could not determine mono version:/) end end context 'mono < 5.0' do let(:mono_version) do