inspec/test/unit/resources/zfs_dataset_test.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

15 lines
539 B
Ruby

require "helper"
require "inspec/resource"
require "inspec/resources/zfs_dataset"
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