inspec/test/unit/resources/zfs_pool_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
550 B
Ruby

require "helper"
require "inspec/resource"
require "inspec/resources/zfs_pool"
describe Inspec::Resources::ZfsPool do
let(:loader) { MockLoader.new(:freebsd10) }
let(:tank_resource) { loader.send("load_resource", "zfs_pool", "tank") }
it "parses the ZFS pool data properly" do
_(tank_resource.send(:health)).must_equal("ONLINE")
_(tank_resource.send(:guid)).must_equal("4711279777582057513")
_(tank_resource.send(:failmode)).must_equal("continue")
_(tank_resource.send(:'feature@lz4_compress')).must_equal("active")
end
end