inspec/test/artifact/inspec_json_test.rb
Miah Johnson ca1416fb0a Add some very basic tests. Several of which outright flunk!
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-11-07 15:42:48 -08:00

17 lines
353 B
Ruby

require_relative "artifact_helper"
require "open3"
class TestInspecJson < Minitest::Test
parallelize_me!
def test_json
flunk
# Need a tempdir
command = "/bin/inspec json #{TEST_CLI_OPTS}"
stdout, stderr, status = Open3.capture3(command)
assert_empty stderr.sub(/#< CLIXML\n/, "")
assert stdout
assert status
end
end