Update test to remove some skips due to outdated fixture

The tests depended on an old fixture profile that skipped a test,
which no longer happens. It also was targeting a test that does not exist.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2020-06-10 19:25:28 -04:00 committed by Nick Schwaderer
parent 955ab36922
commit c602e53910

View file

@ -56,22 +56,11 @@ describe "inspec exec with junit formatter" do
end
describe 'the testcase named "example_config Can\'t find file ..."' do
let(:example_yml_tests) { suite.xpath("//testcase[@classname='profile.example-1.0' and @name='example_config']") }
let(:first_example_test) { example_yml_tests.first }
let(:example_yml_tests) { suite.xpath("//testcase[@classname='profile.tmp-1.0' and @name='File / is expected to be directory']") }
it "should be unique" do
skip
_(example_yml_tests.length).must_equal 1
end
it "should be skipped" do
skip
if is_windows?
_(first_example_test.elements.to_a("//skipped").length).must_equal 2
else
_(first_example_test.elements.to_a("//skipped").length).must_equal 1
end
end
end
end
end