Sha256: 4c975e3a2dbc3261fc2e006eb41a2c47ac454c4c8093811e9af4e51a8addd699
Contents?: true
Size: 627 Bytes
Versions: 15
Compression:
Stored size: 627 Bytes
Contents
require 'spec_helper' require 'validator' describe Validator::JsonSchema do it 'validates schemas against the meta schema' do path = Fidor::Schema.path files = Dir.glob("#{path}/**/*.json") v = Validator::JsonSchema.new files v.validate_schemas expect(v.log[0]).to include('validate schema') expect(v.errors).to be_empty end it 'validates schemas against blank data' do path = Fidor::Schema.path files = Dir.glob("#{path}/**/*.json") v = Validator::JsonSchema.new files v.validate_data expect(v.log[0]).to include('validate data') # expect(v.errors).to be_empty end end
Version data entries
15 entries across 15 versions & 1 rubygems