From 26c34c3487cab37f06732d8420cdc1c56964d843 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Wed, 16 Mar 2016 08:39:19 +0100 Subject: [PATCH] WIP profile check on inheritance profiles --- test/functional/command_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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