Sha256: 6eb16f1acd793366d8aa84a1196be0e308da72cf290fefa61e12c4cffad2bd2d
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) module XcodeInstall xcode_path = '/Volumes/Macintosh HD/Applications/Xcode Beta' describe InstalledXcode do it 'finds the current Xcode version with whitespace chars' do InstalledXcode.any_instance.expects(:`).with("/usr/libexec/PlistBuddy -c \"Print :CFBundleShortVersionString\" \"#{xcode_path}/Contents/version.plist\"").returns('6.3.1') installed = InstalledXcode.new(xcode_path) installed.version.should == '6.3.1' end it 'is robust against broken Xcode installations' do InstalledXcode.any_instance.expects(:`).with("/usr/libexec/PlistBuddy -c \"Print :CFBundleShortVersionString\" \"#{xcode_path}/Contents/version.plist\"").returns(nil) installed = InstalledXcode.new(xcode_path) installed.version.should == '0.0' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xcode-install-2.8.1 | spec/installed_spec.rb |
xcode-install-2.8.0 | spec/installed_spec.rb |