inspec/test/unit/mock/profiles/complete-profile/controls/filesystem_spec.rb
Stephan Renatus a26dbe146d fix reading profiles bug
For reading the profiles metadata, we're using the train mock backend
through Inspec::Runner. The new `supports` feature never agrees with the
mock backend.

Now, it we figure out if this is a mock class and then just say that it
supports whatever we're asking for.

Tl;dr: there's probably a more beautiful solution to this.

Added a test case, but it fails -- while the command line interface
works fine.
2016-01-07 15:16:49 -08:00

16 lines
298 B
Ruby

# encoding: utf-8
# copyright: 2015, Chef Software, Inc
# license: All rights reserved
title 'Proc Filesystem Configuration'
control 'test01' do
impact 0.5
title 'Catchy title'
desc '
There should always be a /proc
'
describe file('/proc') do
it { should be_mounted }
end
end