diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-30 12:55:34 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-03-30 12:55:34 -0700 |
commit | 56b912d1f928abdd7b1e58ba0db8400d1e4b19bf (patch) | |
tree | 9d486c41e25ffb26ce3e47d1935cbc9221dbb5fe /spec/unit/property_spec.rb | |
parent | de209e6ee12939f641ec0ed002c2d3506abaafe7 (diff) | |
download | chef-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.rb | 2 |
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 |