spec/rake/funnel/support/mono_spec.rb in rake-funnel-0.21.0 vs spec/rake/funnel/support/mono_spec.rb in rake-funnel-0.21.1

- old
+ new

@@ -1,9 +1,7 @@ require 'tmpdir' -include Rake::Funnel::Support - describe Rake::Funnel::Support::Mono do shared_examples 'on Windows' do it 'should return executable' do expect(described_class.invocation('executable.exe')).to eq(%w(executable.exe)) end @@ -51,11 +49,12 @@ context 'not on Windows' do let(:windows?) { false } before do allow(File).to receive(:readable?).with('/proc/version').and_return(false) - allow(Which).to receive(:which) + + allow(Rake::Funnel::Support::Which).to receive(:which) end before do @cmd = described_class.invocation('executable.exe') end @@ -63,10 +62,10 @@ it "should prepend 'mono'" do expect(@cmd.first).to eq('mono') # rubocop:disable RSpec/InstanceVariable end it 'should resolve executable through which' do - expect(Which).to have_received(:which).with('executable.exe') + expect(Rake::Funnel::Support::Which).to have_received(:which).with('executable.exe') end it 'should support args' do expect(described_class.invocation(%w(executable.exe arg1 arg2))).to eq(%w(mono executable.exe arg1 arg2)) end