voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.54k stars 243 forks source link

Fixed issues with caching #334

Closed iainbeeston closed 8 years ago

iainbeeston commented 8 years ago

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.

RST-J commented 8 years ago

:+1: