diff options
-rw-r--r-- | spec/unit/resource_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb index c1863be64f..db355d44fa 100644 --- a/spec/unit/resource_spec.rb +++ b/spec/unit/resource_spec.rb @@ -390,20 +390,20 @@ describe Chef::Resource do end it "suppresses that properties value irrespective of desired state (false) " do resource_class = Class.new(Chef::Resource) { - property :foo, String, sensitive: true, desired_state: false + property :suppressed_content, String, sensitive: true, desired_state: false } resource = resource_class.new("desired_state_property_tests") - resource.foo = "some value" - expect(resource.to_text).to match(/foo "\*#{sensitive_property_masked_value}\*"/) + resource.suppressed_content = "some value" + expect(resource.to_text).to match(/suppressed_content "\*#{sensitive_property_masked_value}\*"/) end it "suppresses that properties value irrespective of desired state (true) " do resource_class = Class.new(Chef::Resource) { - property :foo, String, sensitive: true, desired_state: true + property :desired_state_content, String, sensitive: true, desired_state: true } resource = resource_class.new("desired_state_property_tests") - resource.foo = "some value" - expect(resource.to_text).to match(/foo "\*#{sensitive_property_masked_value}\*"/) + resource.desired_state_content = "some value" + expect(resource.to_text).to match(/desired_state_content "\*#{sensitive_property_masked_value}\*"/) end end |