Sha256: cb195a2d8840cae3dece7be45c41117896c1f145a5891a92fad976334e88b093

Contents?: true

Size: 560 Bytes

Versions: 3

Compression:

Stored size: 560 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)

module XcodeInstall
  describe Command::InstallCLITools do
    it 'fails if tools are already installed' do
      Command::InstallCLITools.any_instance.expects(:installed?).returns(true)
      lambda { Command::InstallCLITools.run }.should.raise(SystemExit)
    end

    it 'runs if tools are not installed' do
      Command::InstallCLITools.any_instance.expects(:installed?).returns(false)
      Command::InstallCLITools.any_instance.expects(:install)
      Command::InstallCLITools.run
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xcode-install-1.1.0 spec/cli_spec.rb
xcode-install-1.0.1 spec/cli_spec.rb
xcode-install-1.0.0 spec/cli_spec.rb