summaryrefslogtreecommitdiff
path: root/spec/lib/matchers/json.rb
AgeCommit message (Collapse)AuthorFilesLines
2014-01-14(PUP-1151) Consolidate JSON schema validationAndrew Parker1-79/+135
This adds a new matcher to the JSONMatchers to validate json against a given json-schema. All of the json schema validation now goes through this one matcher, which also handles skipping the checks on windows.
2011-04-14Adding json-specific matchersLuke Kanies1-0/+111
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>