Sha256: 909d18980565acefd10d2bf38ed8b418dfd35d1733c9176d834a0e68b9bae096
Contents?: true
Size: 556 Bytes
Versions: 43
Compression:
Stored size: 556 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) -> { 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
43 entries across 43 versions & 2 rubygems