summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-11-12 15:01:16 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2021-11-12 15:01:16 -0800
commit20681f07c993db9add0939513dbc6598bb6c2efd (patch)
tree7b7919c48cd40c60860b592191573e823678dd1f
parentbf8204df931b066671bc527ffd02b940911a070b (diff)
downloadchef-20681f07c993db9add0939513dbc6598bb6c2efd.tar.gz
be more explicit that boom2 should be in the error
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/unit/mixin/why_run_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/mixin/why_run_spec.rb b/spec/unit/mixin/why_run_spec.rb
index 16ee50fec4..7e56433fea 100644
--- a/spec/unit/mixin/why_run_spec.rb
+++ b/spec/unit/mixin/why_run_spec.rb
@@ -44,7 +44,7 @@ describe Chef::Mixin::WhyRun::ResourceRequirements do
let(:resource) { TestResource.new("name", run_context) }
it "raises an exception for an action where the assertions raise exceptions" do
- expect { resource.run_action(:boom) }.to raise_error(StandardError)
+ expect { resource.run_action(:boom) }.to raise_error(StandardError, /boom2/)
end
it "does not raise an exception for an action which has no assertions" do