inspec/test/unit/resources/zfs_dataset_test.rb
Ryan Davis 07dc5e3192 First pass at cleaning deprecations for old minitest/spec-style tests.
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>
2019-10-03 13:45:19 -07:00

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