mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
ca1416fb0a
Signed-off-by: Miah Johnson <miah@chia-pet.org>
21 lines
526 B
Ruby
21 lines
526 B
Ruby
require_relative "artifact_helper"
|
|
|
|
class TestArtifactInstallation < Minitest::Test
|
|
parallelize_me!
|
|
|
|
def test_inspec_exists_linux
|
|
skip if windows?
|
|
stdout, stderr, status = Open3.capture3("/usr/bin/which inspec")
|
|
refute_match(/no inspec/, stdout)
|
|
assert_empty stderr
|
|
assert status
|
|
end
|
|
|
|
def test_inspec_exists_windows
|
|
skip unless windows?
|
|
stdout, stderr, status = Open3.capture3("Get-Command inspec")
|
|
assert_match(/inspec.bat/, stdout)
|
|
assert_empty stderr
|
|
assert status
|
|
end
|
|
end
|