I discovered that the flag we have to clear the cache after validation (:clear_cache => true) didn't actually work. I've added tests around that and fixed the problem. There were also issues with JSON::Validator.cache_schemas.
There was also some minor refactoring of the test helpers, to make clearing the cache and validating schemas the default, which wouldn't have worked before merging this.
I discovered that the flag we have to clear the cache after validation (
:clear_cache => true
) didn't actually work. I've added tests around that and fixed the problem. There were also issues withJSON::Validator.cache_schemas
.There was also some minor refactoring of the test helpers, to make clearing the cache and validating schemas the default, which wouldn't have worked before merging this.