summaryrefslogtreecommitdiff
path: root/spec/unit/property_spec.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-06-30 14:50:58 -0600
committerJohn Keiser <john@johnkeiser.com>2015-07-03 13:10:23 -0600
commit17039741776d3e597776cee859746d8efd586a6d (patch)
tree06c1a4423f22a2da3cb24954dd4c3bdfa3922a24 /spec/unit/property_spec.rb
parent901f122c5a906b8f64e8ed1919674ffe9d839bf0 (diff)
downloadchef-17039741776d3e597776cee859746d8efd586a6d.tar.gz
Add Property.create and Resource.property_type for type system overriding
Diffstat (limited to 'spec/unit/property_spec.rb')
-rw-r--r--spec/unit/property_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb
index 23f6f51d2c..09f7e52329 100644
--- a/spec/unit/property_spec.rb
+++ b/spec/unit/property_spec.rb
@@ -958,6 +958,11 @@ describe "Chef::Resource.property" do
expect(resource.x).to eq 10
end
end
+ with_property ":x, #{name}: true, required: true" do
+ it "defaults x to resource.name" do
+ expect(resource.x).to eq 'blah'
+ end
+ end
end
end
end