spec/support/file_helpers.rb in json_matchers-0.5.0 vs spec/support/file_helpers.rb in json_matchers-0.5.1
- old
+ new
@@ -28,9 +28,11 @@
end
RSpec.configure do |config|
config.include FileHelpers
+ config.before(:each) { JSON::Validator.clear_cache }
+
config.around do |example|
JsonMatchers.schema_root = File.join(Dir.pwd, "spec", "fixtures", "schemas")
FileUtils.mkdir_p(JsonMatchers.schema_root)
example.run