mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
Added functional tests for inspec version --format json
Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
parent
1aa223c99b
commit
0d91fefd6a
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,13 @@ describe 'command tests' do
|
|||
out.exit_status.must_equal 0
|
||||
out.stdout.must_equal Inspec::VERSION+"\n"
|
||||
end
|
||||
|
||||
it 'prints the version as JSON when the format is specified as JSON' do
|
||||
out = inspec('version --format=json')
|
||||
out.stderr.must_equal ''
|
||||
out.exit_status.must_equal 0
|
||||
out.stdout.must_equal %({"version":"#{Inspec::VERSION}"}\n)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'check' do
|
||||
|
|
Loading…
Add table
Reference in a new issue