diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-31 16:42:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-31 16:42:49 -0700 |
commit | a780bae9c6dae95dc51fa0323cb931fb28ed5a35 (patch) | |
tree | dba08083c650d9188c33bf802dde11db5ac47771 /spec | |
parent | c34f190c00ae44fde3c06d9a153893c178aebd3c (diff) | |
parent | b6f81d6f6702f5f13e3e0307c8253d1ef949645b (diff) | |
download | chef-a780bae9c6dae95dc51fa0323cb931fb28ed5a35.tar.gz |
Merge pull request #5500 from chef/lcg/improve-error-message
Core: improve readability of property-resource namespace collision exception message
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/recipes/resource_action_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/recipes/resource_action_spec.rb b/spec/integration/recipes/resource_action_spec.rb index 60d5831a50..f11696bae4 100644 --- a/spec/integration/recipes/resource_action_spec.rb +++ b/spec/integration/recipes/resource_action_spec.rb @@ -498,7 +498,7 @@ module ResourceActionSpec it "Raises an error when attempting to use a template in the action" do expect_converge do has_property_named_template "hi" - end.to raise_error(/Property template of has_property_named_template\[hi\] cannot be passed a block! If you meant to create a resource named template instead, you'll need to first rename the property./) + end.to raise_error(/Property `template` of `has_property_named_template\[hi\]` was incorrectly passed a block. Possible property-resource collision. To call a resource named `template` either rename the property or else use `declare_resource\(:template, ...\)`/) end end |