Sha256: 46bc611c0294baa527bbdc0292a340c568d06165cc77b58aa2a77bc1c3323413

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

# frozen_string_literal: true

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

Version Path
rake-funnel-0.24.0 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.23.0 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb
rake-funnel-0.22.3 spec/rake/funnel/support/argument_mapper/styles/nunit_spec.rb