summaryrefslogtreecommitdiff
path: root/spec/unit/property_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-30 12:55:34 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-30 12:55:34 -0700
commit56b912d1f928abdd7b1e58ba0db8400d1e4b19bf (patch)
tree9d486c41e25ffb26ce3e47d1935cbc9221dbb5fe /spec/unit/property_spec.rb
parentde209e6ee12939f641ec0ed002c2d3506abaafe7 (diff)
downloadchef-56b912d1f928abdd7b1e58ba0db8400d1e4b19bf.tar.gz
fix specs for nameless resources
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/property_spec.rb')
-rw-r--r--spec/unit/property_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb
index bd90891b63..79ec05ea6d 100644
--- a/spec/unit/property_spec.rb
+++ b/spec/unit/property_spec.rb
@@ -301,7 +301,7 @@ describe "Chef::Resource.property" do
expect(resource.property_is_set?(:name)).to be_truthy
resource.reset_property(:name)
expect(resource.property_is_set?(:name)).to be_falsey
- expect(resource.name).to be_nil
+ expect { resource.name }.to raise_error Chef::Exceptions::ValidationFailed
end
it "when referencing an undefined property, reset_property(:x) raises an error" do