Sha256: c3a5def1d16b5328f8a0da07d375010de70e3505c23b0ef4d51674a30c9e6f01
Contents?: true
Size: 587 Bytes
Versions: 5
Compression:
Stored size: 587 Bytes
Contents
# rubocop:disable RSpec/FilePath describe Rake::Funnel::Support::Mapper::Styles::NUnit do subject { Mapper.new(:NUnit) } describe 'prefix' do 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']) 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
Version data entries
5 entries across 5 versions & 1 rubygems