update xcode spec tests for beta 12

This commit is contained in:
Jacob Zaval 2020-08-04 11:23:06 -07:00
Родитель 15b9571cd1
Коммит e333d8c83f
2 изменённых файлов: 86 добавлений и 75 удалений

Просмотреть файл

@ -79,7 +79,13 @@ describe MacOS::Xcode do
"11.5\n",
"11.5 GM Seed\n",
"11.5 beta 2\n",
"11.6 beta\n"]
"11.6 beta\n",
"12 beta 4\n",
"12 for macOS Universal Apps beta\n",
"12 beta 3\n",
"12 beta 2\n",
"12 for macOS Universal Apps beta 2\n",
"12 beta\n"]
)
end
it 'returns the name of Xcode 11.5 official when initialized with the semantic version' do

Просмотреть файл

@ -12,80 +12,85 @@ describe 'xcode' do
.and_return(true)
allow(MacOS::XCVersion).to receive(:available_versions)
.and_return(["4.3 for Lion\n",
"4.3.1 for Lion\n",
"4.3.2 for Lion\n",
"4.3.3 for Lion\n",
"4.4\n",
"4.4.1\n",
"4.5\n",
"4.5.1\n",
"4.5.2\n",
"4.6\n",
"4.6.1\n",
"4.6.2\n",
"4.6.3\n",
"5\n",
"5.0.1\n",
"5.0.2\n",
"5.1\n",
"5.1.1\n",
"6.0.1\n",
"6.1\n",
"6.1.1\n",
"6.2\n",
"6.3\n",
"6.3.1\n",
"6.3.2\n",
"6.4\n",
"7\n",
"7.0.1\n",
"7.1\n",
"7.1.1\n",
"7.2\n",
"7.2.1\n",
"7.3\n",
"7.3.1\n",
"8\n",
"8.1\n",
"8.2\n",
"8.2.1\n",
"8.3\n",
"8.3.1\n",
"8.3.2\n",
"8.3.3\n",
"9\n",
"9.0.1\n",
"9.1\n",
"9.2\n",
"9.3\n",
"9.4.1\n",
"9.4.2 beta 2\n",
"9.4.2\n",
"10 beta 1\n",
"10 GM seed\n",
"10\n",
"10.1\n",
"10.2.1\n",
"10.2\n",
"10.3\n",
"11\n",
"11.1\n",
"11.2\n",
"11.2.1\n",
"11.3 beta\n",
"11.3\n",
"11.3.1\n",
"11.4 beta\n",
"11.4\n",
"11.4 beta 3\n",
"11.4 beta 2\n",
"11.4.1\n",
"11.5 beta\n",
"11.5\n",
"11.5 GM Seed\n",
"11.5 beta 2\n",
"11.6 beta\n"]
)
"4.3.1 for Lion\n",
"4.3.2 for Lion\n",
"4.3.3 for Lion\n",
"4.4\n",
"4.4.1\n",
"4.5\n",
"4.5.1\n",
"4.5.2\n",
"4.6\n",
"4.6.1\n",
"4.6.2\n",
"4.6.3\n",
"5\n",
"5.0.1\n",
"5.0.2\n",
"5.1\n",
"5.1.1\n",
"6.0.1\n",
"6.1\n",
"6.1.1\n",
"6.2\n",
"6.3\n",
"6.3.1\n",
"6.3.2\n",
"6.4\n",
"7\n",
"7.0.1\n",
"7.1\n",
"7.1.1\n",
"7.2\n",
"7.2.1\n",
"7.3\n",
"7.3.1\n",
"8\n",
"8.1\n",
"8.2\n",
"8.2.1\n",
"8.3\n",
"8.3.1\n",
"8.3.2\n",
"8.3.3\n",
"9\n",
"9.0.1\n",
"9.1\n",
"9.2\n",
"9.3\n",
"9.4.1\n",
"9.4.2 beta 2\n",
"9.4.2\n",
"10 beta 1\n",
"10 GM seed\n",
"10\n",
"10.1\n",
"10.2.1\n",
"10.2\n",
"10.3\n",
"11\n",
"11.1\n",
"11.2\n",
"11.2.1\n",
"11.3 beta\n",
"11.3\n",
"11.3.1\n",
"11.4 beta\n",
"11.4\n",
"11.4 beta 3\n",
"11.4 beta 2\n",
"11.4.1\n",
"11.5 beta\n",
"11.5\n",
"11.5 GM Seed\n",
"11.5 beta 2\n",
"11.6 beta\n",
"12 beta 4\n",
"12 for macOS Universal Apps beta\n",
"12 beta 3\n",
"12 beta 2\n",
"12 for macOS Universal Apps beta 2\n",
"12 beta\n"])
allow(File).to receive(:exist?).and_call_original
allow(FileUtils).to receive(:touch).and_return(true)
allow(FileUtils).to receive(:chown).and_return(true)