inspec/test/unit/mock/profiles/{{special-path}}/controls/special-path.rb
Jerry Aldrich III 125e0915b2 Modify DirProvider to allow special characters (#2174)
This modifies `Inspec::DirProvider` to allow special characters in the
file glob by escaping those characters via `Shellwords.shellescape`.

This fixes #2111 (`inspec check` on path with special characters)

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2017-09-23 09:16:25 +02:00

10 lines
216 B
Ruby

title 'special-path'
control 'normal-profile-1.0' do
impact 0.7
title 'Test Paths with Special Chars'
desc 'Not a real test, check with `inspec check`'
describe 'foo' do
it { should eq 'foo' }
end
end