Change RubyGems installation to use toolset (#3474)

This commit is contained in:
Mikhail Timofeev
2021-05-30 00:39:27 +03:00
committed by GitHub
parent cfbaf5ff4d
commit 5898c5ebd4
7 changed files with 89 additions and 46 deletions
+15 -12
View File
@@ -1,4 +1,15 @@
$os = Get-OSVersion
Describe "RubyGems" {
$gemTestCases = Get-ToolsetValue -KeyPath "rubygems" | ForEach-Object {
@{gemName = $_}
}
if ($gemTestCases)
{
It "Gem <gemName> is installed" -TestCases $gemTestCases {
"gem list -i '^$gemName$'" | Should -MatchCommandOutput "true"
}
}
}
Describe "Bundler" {
It "Bundler" {
@@ -6,17 +17,9 @@ Describe "Bundler" {
}
}
Describe "Nomad" -Skip:($os.IsBigSur) {
Context "Nomad" {
It "Nomad CLI" {
$result = Get-CommandResult "gem list"
$result.Output | Should -BeLike "*nomad-cli*"
}
}
Context "Nomad CLI" {
It "Nomad CLI IPA" {
"ipa --version" | Should -ReturnZeroExitCode
}
Describe "Nomad shenzhen CLI" {
It "Nomad shenzhen CLI" {
"ipa --version" | Should -ReturnZeroExitCode
}
}