Sha256: d2a1ede80cc535631e148309ecc70a19c7624a80df73ee51a667518600d52bb1
Contents?: true
Size: 609 Bytes
Versions: 3
Compression:
Stored size: 609 Bytes
Contents
describe Rake::Funnel::Support::Mapper::Styles::NUnit do # rubocop:disable RSpec/FilePath subject { Rake::Funnel::Support::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
3 entries across 3 versions & 1 rubygems