Sha256: 79311a682d58fe45f0111681c32296c49fdb801f52842bbe65b8fa4f2efb0fbe
Contents?: true
Size: 988 Bytes
Versions: 4
Compression:
Stored size: 988 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) module XcodeInstall describe Command::Install do before do Installer.any_instance.stubs(:exists).returns(true) Installer.any_instance.stubs(:installed).returns([]) fixture = Pathname.new('spec/fixtures/xcode_63.json').read xcode = Xcode.new(JSON.parse(fixture)) Installer.any_instance.stubs(:seedlist).returns([xcode]) end it 'downloads and installs' do Installer.any_instance.expects(:download).with('6.3').returns('/some/path') Installer.any_instance.expects(:install_dmg).with('/some/path', '-6.3', true, true) Command::Install.run(['6.3']) end it 'downloads and installs and does not switch if --no-switch given' do Installer.any_instance.expects(:download).with('6.3').returns('/some/path') Installer.any_instance.expects(:install_dmg).with('/some/path', '-6.3', false, true) Command::Install.run(['6.3', '--no-switch']) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
xcode-install-0.9.0 | spec/install_spec.rb |
xcode-install-0.3.3 | spec/install_spec.rb |
xcode-install-0.3.2 | spec/install_spec.rb |
xcode-install-0.3.1 | spec/install_spec.rb |