spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb in rake-funnel-0.18.0 vs spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb in rake-funnel-0.19.0
- old
+ new
@@ -1,25 +1,27 @@
+# rubocop:disable RSpec/FilePath
+
describe Rake::Funnel::Support::Mapper::Styles::NUnit do
subject { Mapper.new(:NUnit) }
describe 'prefix' do
- before {
+ before do
allow(Rake::Win32).to receive(:windows?).and_return(windows?)
- }
+ end
context 'on Windows' do
let(:windows?) { true }
it "should use '/'" do
- expect(subject.map({ switch: nil })).to eq(['/switch'])
+ expect(subject.map(switch: nil)).to eq(['/switch'])
end
end
context 'not on Windows' do
let(:windows?) { false }
it "should use '-'" do
- expect(subject.map({ switch: nil })).to eq(['-switch'])
+ expect(subject.map(switch: nil)).to eq(['-switch'])
end
end
end
end