mirror of
https://github.com/inspec/inspec
synced 2024-12-24 03:53:15 +00:00
07dc5e3192
3 files left to go, and they're behaving oddly so I'm leaving them out in this pass. Looks like 21 deprecations left. Signed-off-by: Ryan Davis <zenspider@chef.io>
15 lines
551 B
Ruby
15 lines
551 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
|