diff --git a/test/functional/inspec_exec_test.rb b/test/functional/inspec_exec_test.rb index 2795e3aef..d161ff25a 100644 --- a/test/functional/inspec_exec_test.rb +++ b/test/functional/inspec_exec_test.rb @@ -180,8 +180,17 @@ Test Summary: 0 successful, 0 failures, 0 skipped it "executes only specified controls when selecting the controls by literal names" do inspec("exec " + File.join(profile_path, "filter_table") + " --no-create-lockfile --controls foo") + _(stdout).must_equal " +Profile: InSpec Profile (filter_table) +Version: 0.1.0 +Target: local:// - _(stdout).must_include "\nProfile Summary: 1 successful controls, 0 control failures, 0 controls skipped\n" + ✔ foo: a thing + ✔ a thing is expected to cmp == \"a thing\" + + +Profile Summary: 1 successful control, 0 control failures, 0 controls skipped +Test Summary: 1 successful, 0 failures, 0 skipped" _(stderr).must_equal "" assert_exit_code 0, out