mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
6c19e81a06
Signed-off-by: Miah Johnson <miah@chia-pet.org>
15 lines
501 B
Ruby
15 lines
501 B
Ruby
|
|
require 'helper'
|
|
require 'inspec/resource'
|
|
|
|
describe Inspec::Resources::ZfsDataset do
|
|
let(:loader) { MockLoader.new(:freebsd10) }
|
|
let(:tank_tmp_resource) { loader.send('load_resource', 'zfs_dataset', 'tank/tmp') }
|
|
|
|
it 'parses the ZFS dataset data properly' do
|
|
tank_tmp_resource.send(:mountpoint).must_equal('/tmp')
|
|
tank_tmp_resource.send(:type).must_equal('filesystem')
|
|
tank_tmp_resource.send(:exec).must_equal('off')
|
|
tank_tmp_resource.send(:setuid).must_equal('off')
|
|
end
|
|
end
|