inspec/test/artifact/inspec_shell_test.rb
Miah Johnson 6f829c2d27 drop leading /bin
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-11-07 17:13:49 -08:00

12 lines
300 B
Ruby

require_relative "artifact_helper"
class TestInspecShell < Minitest::Test
def test_shell
command = "inspec shell -c 'os.family' #{TEST_CLI_OPTS}"
stdout, stderr, status = Open3.capture3(command)
assert_empty stderr.sub(/#< CLIXML\n/, "")
assert stdout
assert status
end
end