inspec/test/integration/default/mount_spec.rb
2016-05-16 18:25:17 +02:00

14 lines
413 B
Ruby

# encoding: utf-8
# TODO: do not run those tests on docker yet
return if ENV['DOCKER']
return unless os.linux?
# instead of `.with` or `.only_with` we recommend to use the `mount` resource
describe mount '/mnt/iso-disk' do
it { should be_mounted }
its('count') { should eq 1 }
its('device') { should eq '/tmp/empty.iso' }
its('type') { should eq 'iso9660' }
its('options') { should eq ['ro'] }
end