summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2015-07-13 15:35:54 -0400
committerChristian Höltje <docwhat@gerf.org>2015-08-19 15:30:07 -0400
commit82f328a811bf4c8a71277d56bfffa631d5f565f5 (patch)
tree966d798a584a9c5ed851df311d3cd3dc15af1d53 /spec
parentbacb2ff93ccc2e14a0b721988e241a1d07f70795 (diff)
downloadchef-82f328a811bf4c8a71277d56bfffa631d5f565f5.tar.gz
Fix error message for providers without `provides`
The warning incorrectly said that the provider was missing `resource_name :resource` when it should have said it was missing `provides :resource` I also switched from using `begin`...`rescue` since it isn't needed and needlessly slow things up. Fixes #3614
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/recipes/recipe_dsl_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/recipes/recipe_dsl_spec.rb b/spec/integration/recipes/recipe_dsl_spec.rb
index fd40e5b6d8..52bca87c99 100644
--- a/spec/integration/recipes/recipe_dsl_spec.rb
+++ b/spec/integration/recipes/recipe_dsl_spec.rb
@@ -119,7 +119,7 @@ describe "Recipe DSL methods" do
recipe = converge {
backcompat_thingy 'blah' do; end
}
- expect(recipe.logged_warnings).to match(/Class Chef::Provider::BackcompatThingy does not declare 'resource_name :backcompat_thingy'./)
+ expect(recipe.logged_warnings).to match(/Class Chef::Provider::BackcompatThingy does not declare 'provides :backcompat_thingy'./)
expect(BaseThingy.created_resource).not_to be_nil
end
end