summaryrefslogtreecommitdiff
path: root/spec/unit/recipe_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-21 09:42:49 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-21 09:42:49 -0700
commitaa0a01d3da6f07d4a2f2cbf751e4ae47e217e306 (patch)
treea3ccb84827752866e49471661fc5823e6dd2e6f6 /spec/unit/recipe_spec.rb
parenta65147034050361a8b2bf80a54a2532bf9f0413d (diff)
downloadchef-aa0a01d3da6f07d4a2f2cbf751e4ae47e217e306.tar.gz
fix error messages for method_missing removal
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/recipe_spec.rb')
-rw-r--r--spec/unit/recipe_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb
index 8e00a82e59..cb500da34a 100644
--- a/spec/unit/recipe_spec.rb
+++ b/spec/unit/recipe_spec.rb
@@ -307,7 +307,7 @@ describe Chef::Recipe do
it "gives a sane error message when using method_missing" do
expect do
recipe.no_such_resource("foo")
- end.to raise_error(NoMethodError, /undefined method `no_such_resource' for #<Chef::Recipe:.*>/)
+ end.to raise_error(NoMethodError, /undefined method `no_such_resource' for cookbook: hjk, recipe: test :Chef::Recipe/)
end
it "gives a sane error message when using method_missing 'bare'" do
@@ -316,7 +316,7 @@ describe Chef::Recipe do
# Giving an argument will change this from NameError to NoMethodError
no_such_resource
end
- end.to raise_error(NameError, /undefined local variable or method `no_such_resource' for #<Chef::Recipe:.*>/)
+ end.to raise_error(NameError, /undefined local variable or method `no_such_resource' for cookbook: hjk, recipe: test :Chef::Recipe/)
end
it "gives a sane error message when using build_resource" do