Fixed test file for syntax issues

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
Vasu1105 2021-03-17 20:48:19 +05:30
parent e1e10732ae
commit 89e994c4b3

View file

@ -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