diff options
author | Davin Taddeo <davin@chef.io> | 2020-06-11 11:10:30 -0400 |
---|---|---|
committer | Davin Taddeo <davin@chef.io> | 2020-06-11 11:10:30 -0400 |
commit | 8383cdc0fee7252db99e4c4971b15f3bb7365290 (patch) | |
tree | 1861c5502e98e739059b022a2405502a02eb72fc | |
parent | c23ed3f1605e2b15e3b3822f19c1f58683cb16ec (diff) | |
download | chef-8383cdc0fee7252db99e4c4971b15f3bb7365290.tar.gz |
fixing a lot more :facepalm: copy/paste errors.
Signed-off-by: Davin Taddeo <davin@chef.io>
-rw-r--r-- | spec/unit/resource/windows_audit_policy_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource/windows_audit_policy_spec.rb b/spec/unit/resource/windows_audit_policy_spec.rb index 9b0854961c..31a8ba0c1c 100644 --- a/spec/unit/resource/windows_audit_policy_spec.rb +++ b/spec/unit/resource/windows_audit_policy_spec.rb @@ -105,18 +105,18 @@ describe Chef::Resource::WindowsAuditPolicy do end it "expects failure property to have a true or false value if entered" do - expect { resource.success "not_a_true_or_false" }.to raise_error + expect { resource.failure "not_a_true_or_false" }.to raise_error end subcat_opts.each do |val| it "the subcategory property accepts :#{val}" do - expect { resource.consent_behavior_users val }.not_to raise_error + expect { resource.sub_category val }.not_to raise_error end end %i{Logout subjugate_mortals misfits}.each do |val| - it "the resource raises an ArgumentError if invalid sub_category is set" do - expect { resource.consent_behavior_users val }.to raise_error(ArgumentError) + it "the resource raises an ArgumentError if invalid sub_category property is set" do + expect { resource.sub_category val }.to raise_error(ArgumentError) end end |