mirror of
https://github.com/inspec/inspec
synced 2024-12-11 22:02:47 +00:00
d86112bad7
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
13 lines
475 B
Ruby
13 lines
475 B
Ruby
require_relative "artifact_helper"
|
|
|
|
class TestInspecPlugin < ArtifactTest
|
|
def test_plugin_list
|
|
# This one is custom because it emits a special warning to stderr
|
|
inspec_command = "plugin list"
|
|
stdout, stderr, status = run_cmd "inspec #{inspec_command} #{TEST_CLI_OPTS}"
|
|
|
|
assert_empty stderr.sub(/#< CLIXML\n/, "").sub(/The table size exceeds the currently set width\.Defaulting to vertical orientation\.\n/, "")
|
|
assert stdout
|
|
assert status
|
|
end
|
|
end
|