Sha256: ea9b184695ab453e7fb79db5038330682e86f4a4e1138807d25577b5a25db616
Contents?: true
Size: 468 Bytes
Versions: 13
Compression:
Stored size: 468 Bytes
Contents
require 'test/unit' require File.dirname(__FILE__) + '/../lib/json-schema' class AnyOfRefSchemaTest < Test::Unit::TestCase def test_any_of_ref_schema schema = File.join(File.dirname(__FILE__),"schemas/any_of_ref_schema.json") data = File.join(File.dirname(__FILE__),"data/any_of_ref_data.json") errors = JSON::Validator.fully_validate(schema,data, :errors_as_objects => true) assert(errors.empty?, errors.map{|e| e[:message] }.join("\n")) end end
Version data entries
13 entries across 13 versions & 2 rubygems