mirror of
https://github.com/inspec/inspec
synced 2025-02-17 14:38:43 +00:00
12 lines
331 B
Ruby
12 lines
331 B
Ruby
require_relative "artifact_helper"
|
|
|
|
class TestInspecDetect < Minitest::Test
|
|
def test_detect
|
|
command = "/bin/inspec detect --no-color #{TEST_CLI_OPTS}"
|
|
stdout, stderr, status = Open3.capture3(command)
|
|
|
|
assert_empty stderr.sub(/#< CLIXML\n/, "")
|
|
assert_match(/Platform Details/, stdout)
|
|
assert status
|
|
end
|
|
end
|