2023-05-12 13:30:13 +02:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
2023-12-04 12:13:08 +01:00
|
|
|
|
2021-09-24 13:56:16 +03:00
|
|
|
$os = Get-OSVersion
|
|
|
|
|
|
2021-05-30 00:39:27 +03:00
|
|
|
Describe "RubyGems" {
|
2023-12-04 12:13:08 +01:00
|
|
|
$gemTestCases = (Get-ToolsetContent).ruby.rubygems | ForEach-Object {
|
2021-05-30 00:39:27 +03:00
|
|
|
@{gemName = $_}
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-04 12:13:08 +01:00
|
|
|
if ($gemTestCases) {
|
2021-05-30 00:39:27 +03:00
|
|
|
It "Gem <gemName> is installed" -TestCases $gemTestCases {
|
|
|
|
|
"gem list -i '^$gemName$'" | Should -MatchCommandOutput "true"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-01-14 00:46:44 +07:00
|
|
|
|
|
|
|
|
Describe "Bundler" {
|
|
|
|
|
It "Bundler" {
|
|
|
|
|
"bundler --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Fastlane" {
|
|
|
|
|
It "Fastlane" {
|
|
|
|
|
"fastlane --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-03 18:45:06 +02:00
|
|
|
Describe "xcpretty" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
|
2021-01-14 00:46:44 +07:00
|
|
|
It "xcpretty" {
|
|
|
|
|
"xcpretty --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2021-10-27 16:48:10 +03:00
|
|
|
}
|
|
|
|
|
|
2024-09-03 18:45:06 +02:00
|
|
|
Describe "jazzy" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
|
2021-10-27 16:48:10 +03:00
|
|
|
It "jazzy" {
|
|
|
|
|
"jazzy --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2023-11-09 11:29:07 +01:00
|
|
|
}
|