HomePhorge

maint: add a 'print' matcher to rspec, to inspect std{out,err}
351b6fc5327bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

maint: add a 'print' matcher to rspec, to inspect std{out,err}

You can now write expectations along the lines of:

expect { ... }.to print /whatever/

This will do the expected thing, which is to require that we print something
matching that regular expression during the block. The output itself is
suppressed during operation of the matcher.

Paired-With: Max Martin <max@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUf1b7fafd12f1: Merge branch 'feature/2.7.x/7160-support-json-externally' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU351b6fc5327b: maint: add a 'print' matcher to rspec, to inspect std{out,err} (authored by Daniel Pittman <daniel@puppetlabs.com>).Apr 28 2011, 11:50 PM