Use mocked file instead of an empty file call

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
Jerry Aldrich 2019-01-11 21:16:18 -08:00
parent b440e3f132
commit bc56b2275a

View file

@ -78,7 +78,7 @@ describe Inspec::ProfileContext do
end
it 'must provide file resource' do
load('print file("").type').must_output 'unknown'
load('print file("/etc/passwd").type').must_output 'file'
end
it 'must provide command resource' do