BoltSpec's expect_plan()
doesn't match _catch_error
parameter
#3298
Labels
Bug
Bug reports and fixes.
expect_plan()
doesn't match _catch_error
parameter
#3298
Describe the Bug
When trying to mock a
run_plan()
call with BoltSpec'sexpect_plan()
it seems that_catch_error
parameter is ignored completely.Expected Behavior
I'd expect
expect_plan()
to expect the_catch_error
parameter to match the expectation 😄Steps to Reproduce
Imagine PDK-managed
example
module with the following:example/plans/test.pp
:example/spec/plans/test_spec.rb
:Now let's run the test:
You'll see the following
With the
expect_plan
above commented out following error is raised:Here it's clear that
_catch_error
parameter is not even considered while matching (as I read it).Environment
The text was updated successfully, but these errors were encountered: