diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-11-12 15:01:16 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-11-12 15:01:16 -0800 |
commit | 20681f07c993db9add0939513dbc6598bb6c2efd (patch) | |
tree | 7b7919c48cd40c60860b592191573e823678dd1f /spec/unit | |
parent | bf8204df931b066671bc527ffd02b940911a070b (diff) | |
download | chef-20681f07c993db9add0939513dbc6598bb6c2efd.tar.gz |
be more explicit that boom2 should be in the error
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/mixin/why_run_spec.rb | 2 |
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 |