Sha256: 09163b516c550e5ee4a6921a9205be7c3dcc31259d82234c2c075ac856d9940c

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

describe Rake::Funnel::Support::MSBuild::BuildTool do
  before {
    allow(Rake::Win32).to receive(:windows?).and_return(windows?)
  }

  context 'on Windows', platform: :win32 do
    let(:windows?) { true }

    it 'should find msbuild.exe' do
      expect(described_class.find).to match(/msbuild\.exe$/)
    end
  end

  context 'not on Windows' do
    let(:windows?) { false }

    it 'should find xbuild' do
      expect(described_class.find).to eq('xbuild')
    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/msbuild/build_tool_spec.rb
rake-funnel-0.3.1.pre spec/rake/funnel/support/msbuild/build_tool_spec.rb
rake-funnel-0.3.0.pre spec/rake/funnel/support/msbuild/build_tool_spec.rb
rake-funnel-0.2.0.pre spec/rake/funnel/support/msbuild/build_tool_spec.rb
rake-funnel-0.1.0.pre spec/rake/funnel/support/msbuild/build_tool_spec.rb