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

- old
+ new

@@ -1,10 +1,8 @@ describe Rake::Funnel::Support::MSDeploy::RegistryPatch do # rubocop:disable RSpec/FilePath before do - # rubocop:disable RSpec/AnyInstance - allow_any_instance_of(described_class).to receive(:warn) - # rubocop:enable RSpec/AnyInstance + allow($stderr).to receive(:print) end describe 'execution' do it 'should yield block' do result = 0 @@ -104,10 +102,10 @@ before do described_class.new end it 'should warn' do - expect(subject).to have_received(:warn).with(/Could not patch registry to pretend MSDeploy is installed/) + expect($stderr).to have_received(:print).with(/Could not patch registry to pretend MSDeploy is installed/) end end context 'MSDeploy registry key does exist' do before do