Sha256: 8e95416dad45de79a8e0c3bf07cc7fde2203925daaf6bbfa0e26d95fa5a7be06

Contents?: true

Size: 558 Bytes

Versions: 18

Compression:

Stored size: 558 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

18 entries across 18 versions & 1 rubygems

Version Path
rake-funnel-0.18.0 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.17.0 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.16.1 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.16.0 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.15.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.14.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.13.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.12.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.11.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.10.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.9.1.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.9.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.8.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.7.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.6.1.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.6.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.5.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.4.0.pre spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb