mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
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:
parent
955ab36922
commit
c602e53910
1 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue