mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 21:56:55 +00:00
27 lines
855 B
PowerShell
27 lines
855 B
PowerShell
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
Import-Module "$PSScriptRoot/Helpers.psm1" -DisableNameChecking
|
|
|
|
$os = Get-OSVersion
|
|
|
|
Describe "Ruby" -Skip:(-not $os.IsArm64) {
|
|
It "Ruby is available" {
|
|
"ruby --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Ruby is installed via HomeBrew" {
|
|
Get-WhichTool "ruby" | Should -Not -BeLike "/usr/bin/ruby*"
|
|
}
|
|
|
|
It "Ruby tools are consistent" {
|
|
$expectedPrefix = "/opt/homebrew"
|
|
Get-WhichTool "ruby" | Should -Match "$($expectedPrefix)*"
|
|
Get-WhichTool "gem" | Should -Match "$($expectedPrefix)*"
|
|
Get-WhichTool "bundler" | Should -Match "$($expectedPrefix)*"
|
|
}
|
|
|
|
It "Ruby gems permissions are valid" {
|
|
"gem install bundle" | Should -ReturnZeroExitCode
|
|
"gem uninstall bundle" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|