HomePhorge

(#6582) add fixture helper methods to replace unit test code.
6b8f1b724d08Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#6582) add fixture helper methods to replace unit test code.

We validate that fixtures exist, when requested, or that they match something
when they use a glob. This catches internal errors where we don't match any
fixtures with a glob; this can reveal problems that would otherwise avoid all
assertions and result in internal failures.

The code is hidden out in a module, included in the main RSpec namespace.
This doesn't clean up the API any, but it isolates the code more effectively
and keeps the configuration file cleaner.

Reviewed-By: Nick Lewis <nick@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@rimspace.net>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7c9f1b803d86: (#6582) order RSpec global :before and :after hooks naturally.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@rimspace.net> committed rPU6b8f1b724d08: (#6582) add fixture helper methods to replace unit test code. (authored by Daniel Pittman <daniel@rimspace.net>).Mar 4 2011, 1:29 AM