diff --git a/test/functional/command_test.rb b/test/functional/command_test.rb index 017148ab5..56403e13a 100644 --- a/test/functional/command_test.rb +++ b/test/functional/command_test.rb @@ -31,6 +31,11 @@ describe 'Inspec::InspecCLI' do out.stdout.must_match /Valid.*true/ out.exit_status.must_equal 0 end + + it 'archive is successful' do + out = inspec('archive ' + path + ' --overwrite') + out.exit_status.must_equal 0 + end end describe 'example inheritance profile' do @@ -47,5 +52,10 @@ describe 'Inspec::InspecCLI' do out.stdout.must_match /Valid.*true/ out.exit_status.must_equal 0 end + + it 'archive is successful even without --profiles-path' do + out = inspec('archive ' + path + ' --overwrite') + out.exit_status.must_equal 0 + end end end