summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-04-02 13:11:23 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-04-02 13:11:23 -0700
commit333e0695117f8a518b8f2729bc3f97a5bd6560e4 (patch)
tree075407f7449b87bf4c24c09e3750e282357c5e58 /spec/unit
parent6185d25626e63973c22ed4736af048c1f11dab9d (diff)
downloadchef-333e0695117f8a518b8f2729bc3f97a5bd6560e4.tar.gz
remove redundant identity
name_property implies identity if there is no other identity property this has been the behavior for a very long time, dunno why #4282 was never closed. closes #4282 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/property_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb
index 965da7313e..177314d8bc 100644
--- a/spec/unit/property_spec.rb
+++ b/spec/unit/property_spec.rb
@@ -1022,6 +1022,9 @@ describe "Chef::Resource.property" do
it "defaults x to resource.name" do
expect(resource.x).to eq "blah"
end
+ it "defaults to being part of the identity if there is no other identity" do
+ expect(resource.identity).to eq "blah"
+ end
it "does not pick up resource.name if set" do
expect(resource.x 10).to eq 10
expect(resource.x).to eq 10