HomePhorge

Adding json-specific matchers
e424740d78b8Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Adding json-specific matchers

These make the JSON tests much easier to read and
write. They're the first custom matchers that I can
find, so they're breaking a bit of new ground,
but the JSON tests were pretty hard to read
and there was a lot of duplication, so it seemed
worth it.

Note that for some reason they're not working on
Facts - it seems to get immediately turned into
a full instance by the JSON parsing subsystem,
and I've no idea why.

Reviewed-by: Daniel Pittman <daniel@puppetlabs.com>
Signed-off-by: Luke Kanies <luke@puppetlabs.com>

Details

Provenance
Luke Kanies <luke@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUf37b2e106ed1: Making watchr resilient to syntax errors in tests
Branches
Unknown
Tags
Unknown

Event Timeline

Luke Kanies <luke@puppetlabs.com> committed rPUe424740d78b8: Adding json-specific matchers (authored by Luke Kanies <luke@puppetlabs.com>).Apr 15 2011, 2:07 AM