spec/rake/funnel/support/mono_spec.rb in rake-funnel-0.18.0 vs spec/rake/funnel/support/mono_spec.rb in rake-funnel-0.19.0

- old
+ new

@@ -1,13 +1,13 @@ require 'tmpdir' include Rake::Funnel::Support describe Rake::Funnel::Support::Mono do - before { + before do allow(Rake::Win32).to receive(:windows?).and_return(windows?) - } + end context 'on Windows' do let(:windows?) { true } it 'should return executable' do @@ -32,19 +32,19 @@ end context 'not on Windows' do let(:windows?) { false } - before { + before do allow(Which).to receive(:which) - } + end - before { + before do @cmd = described_class.invocation('executable.exe') - } + end it "should prepend 'mono'" do - expect(@cmd.first).to eq('mono') + 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') end