Sha256: bc47c909f63759da381232a4138d16d5703985877e2fa6a62a094b0c891b1595

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 Bytes

Contents

# rubocop:disable RSpec/FilePath

describe Rake::Funnel::Support::Mapper::Styles::NUnit do
  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

2 entries across 2 versions & 1 rubygems

Version Path
rake-funnel-0.21.2 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.21.1 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb