HomePhorge

(PUP-3912) Rewrite expect to use: not_to raise_error
668358f707dfUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3912) Rewrite expect to use: not_to raise_error

Previously these two tests had an expect for a nil return (which
the tests don't care about) and no expect for the lack of a raise
(which was the point of the test). So rewrite to be explicit
about what is expected, which also makes the tests in the 'describe'
block more obviously parallel.

This diff best seen with -w.

Details

Provenance
Kylo Ginsberg <kylo@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUa00f82c81ec0: (PUP-3912) Change 'describe' blocks to 'context' blocks
Branches
Unknown
Tags
Unknown

Event Timeline

Kylo Ginsberg <kylo@puppetlabs.com> committed rPU668358f707df: (PUP-3912) Rewrite expect to use: not_to raise_error (authored by Kylo Ginsberg <kylo@puppetlabs.com>).Jan 26 2015, 8:52 PM