HomePhorge

maint: add an "exit was called" matcher for rspec.
96195c1dc2feUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

maint: add an "exit was called" matcher for rspec.

We have a bunch of places that want to test if exit was called in a block of
code or not, which we did in a whole pile of ad-hoc ways. Instead, better to
have a custom matcher that tests specifically for the correct exit exception
being thrown, and the right error code in it.

Reviewed-By: Jesse Wolf <jesse@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU822d5303f01b: maint: clean up test headers on face spec files.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU96195c1dc2fe: maint: add an "exit was called" matcher for rspec. (authored by Daniel Pittman <daniel@puppetlabs.com>).Apr 23 2011, 12:39 AM