Sha256: 53adff5207594f7ebb94d916e60c2cdaffa0ca41b16f5f49176bcdb874cb3941

Contents?: true

Size: 581 Bytes

Versions: 6

Compression:

Stored size: 581 Bytes

Contents

describe Rake::Funnel::Support::MapperStyles::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

6 entries across 6 versions & 1 rubygems

Version Path
rake-funnel-0.0.6.pre spec/rake/funnel/support/mapper_styles/nunit_spec.rb
rake-funnel-0.0.5.pre spec/rake/funnel/support/mapper_styles/nunit_spec.rb
rake-funnel-0.0.4.pre spec/rake/funnel/support/mapper_styles/nunit_spec.rb
rake-funnel-0.0.3.pre spec/rake/funnel/support/mapper_styles/nunit_spec.rb
rake-funnel-0.0.2.pre spec/rake/funnel/support/mapper_styles/nunit_spec.rb
rake-funnel-0.0.1.pre spec/rake/funnel/support/mapper_styles/nunit_spec.rb