update mock Xcode catalog data for new 'Release Candidate' string
This commit is contained in:
Родитель
1824d13a41
Коммит
460af702eb
|
@ -57,7 +57,7 @@ describe MacOS::Xcode do
|
|||
'9.4.2 beta 2',
|
||||
'9.4.2',
|
||||
'10 beta 1',
|
||||
'10 GM seed',
|
||||
'10 Release Candidate',
|
||||
'10',
|
||||
'10.1',
|
||||
'10.2.1',
|
||||
|
@ -77,7 +77,7 @@ describe MacOS::Xcode do
|
|||
'11.4.1',
|
||||
'11.5 beta',
|
||||
'11.5',
|
||||
'11.5 GM Seed',
|
||||
'11.5 Release Candidate',
|
||||
'11.5 beta 2',
|
||||
'11.6 beta',
|
||||
'11.6 beta 2',
|
||||
|
@ -104,12 +104,12 @@ describe MacOS::Xcode do
|
|||
xcode = MacOS::Xcode.new('11.5', '/Applications/Xcode.app')
|
||||
expect(xcode.version).to eq '11.5'
|
||||
expect(xcode.version).to_not eq '11.5 beta'
|
||||
expect(xcode.version).to_not eq '11.5 GM Seed'
|
||||
expect(xcode.version).to_not eq '11.5 Release Candidate'
|
||||
end
|
||||
it 'returns the name of Xcode 10 official when initialized with the semantic version' do
|
||||
xcode = MacOS::Xcode.new('10.0', '/Applications/Xcode.app')
|
||||
expect(xcode.version).to eq '10'
|
||||
expect(xcode.version).to_not eq '10 GM seed'
|
||||
expect(xcode.version).to_not eq '10 Release Candidate'
|
||||
expect(xcode.version).to_not eq '10 beta 1'
|
||||
end
|
||||
it 'returns the name of Xcode 9.4.2 official when initialized with the semantic version' do
|
||||
|
@ -194,7 +194,7 @@ end
|
|||
describe MacOS::Xcode do
|
||||
context 'when initialized with an Xcode download url and Xcode betas available' do
|
||||
before do
|
||||
allow(MacOS::XCVersion).to receive(:available_versions).and_return(['10 GM seed'])
|
||||
allow(MacOS::XCVersion).to receive(:available_versions).and_return(['10 Release Candidate'])
|
||||
end
|
||||
it 'returns the download url' do
|
||||
xcode = MacOS::Xcode.new('10.0', '/Applications/Xcode.app', 'https://www.apple.com')
|
||||
|
|
|
@ -11,7 +11,7 @@ describe MacOS::XCVersion do
|
|||
|
||||
context 'when given an Xcode object without a download url' do
|
||||
before do
|
||||
allow(MacOS::XCVersion).to receive(:available_versions).and_return(['10 GM seed'])
|
||||
allow(MacOS::XCVersion).to receive(:available_versions).and_return(['10 Release Candidate'])
|
||||
allow(MacOS::XCVersion).to receive(:xcversion_path).and_return('/foo/bar/bin/xcversion')
|
||||
end
|
||||
|
||||
|
@ -22,7 +22,7 @@ describe MacOS::XCVersion do
|
|||
|
||||
it 'executes the correct xcversion command with quotes around the version' do
|
||||
xcode = MacOS::Xcode.new('10.0', '/Applications/Xcode.app', '')
|
||||
expect(XCVersion.install_xcode(xcode)).to eq "/foo/bar/bin/xcversion install '10 GM seed'"
|
||||
expect(XCVersion.install_xcode(xcode)).to eq "/foo/bar/bin/xcversion install '10 Release Candidate'"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -62,7 +62,7 @@ describe 'xcode' do
|
|||
'9.4.2 beta 2',
|
||||
'9.4.2',
|
||||
'10 beta 1',
|
||||
'10 GM seed',
|
||||
'10 Release Candidate',
|
||||
'10',
|
||||
'10.1',
|
||||
'10.2.1',
|
||||
|
@ -82,7 +82,7 @@ describe 'xcode' do
|
|||
'11.4.1',
|
||||
'11.5 beta',
|
||||
'11.5',
|
||||
'11.5 GM Seed',
|
||||
'11.5 Release Candidate',
|
||||
'11.5 beta 2',
|
||||
'11.6 beta',
|
||||
'12 beta 4',
|
||||
|
|
Загрузка…
Ссылка в новой задаче