spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb in rake-funnel-0.3.2.pre vs spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb in rake-funnel-0.4.0.pre

- old
+ new

@@ -1,25 +1,25 @@ -describe Rake::Funnel::Support::Mapper::Styles::NUnit do - subject { Mapper.new(:NUnit) } - - describe 'prefix' do - before { - allow(Rake::Win32).to receive(:windows?).and_return(windows?) - } - - context 'on Windows' do - let(:windows?) { true } - - it "should use '/'" do - 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']) - end - end - end -end +describe Rake::Funnel::Support::Mapper::Styles::NUnit do + subject { Mapper.new(:NUnit) } + + describe 'prefix' do + before { + allow(Rake::Win32).to receive(:windows?).and_return(windows?) + } + + context 'on Windows' do + let(:windows?) { true } + + it "should use '/'" do + 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']) + end + end + end +end