Sha256: 13294d6a29908e03a0de42df345e27e5e6f14bdeeea9d7db3b85abeacb1e4ea1

Contents?: true

Size: 583 Bytes

Versions: 5

Compression:

Stored size: 583 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rake-funnel-0.3.2.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.3.1.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.3.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.2.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.1.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb