inspec/test/unit/resources/audit_policy_test.rb
Vasu1105 55ecbc4f21 CFINSPEC-262 - Handle resource_id in error situation
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 13:54:47 +05:30

11 lines
369 B
Ruby

require "helper"
require "inspec/resource"
require "inspec/resources/audit_policy"
describe "Inspec::Resources::AuditPolicy" do
it "check audit policy parsing" do
resource = MockLoader.new(:windows).load_resource("audit_policy")
_(resource.resource_id).must_equal "audit_policy"
_(resource.send("User Account Management")).must_equal "Success"
end
end