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

Version Path
fidor_schema-0.10.12 spec/validator/json-schema_spec.rb
fidor_schema-0.10.11 spec/validator/json-schema_spec.rb
fidor_schema-0.10.10 spec/validator/json-schema_spec.rb
fidor_schema-0.10.9 spec/validator/json-schema_spec.rb
fidor_schema-0.10.8 spec/validator/json-schema_spec.rb
fidor_schema-0.10.7 spec/validator/json-schema_spec.rb
fidor_schema-0.10.6 spec/validator/json-schema_spec.rb
fidor_schema-0.10.5 spec/validator/json-schema_spec.rb
fidor_schema-0.10.4 spec/validator/json-schema_spec.rb
fidor_schema-0.10.2 spec/validator/json-schema_spec.rb
fidor_schema-0.10.1 spec/validator/json-schema_spec.rb
fidor_schema-0.10.0 spec/validator/json-schema_spec.rb
fidor_schema-0.8.0 spec/validator/json-schema_spec.rb
fidor_schema-0.7.0 spec/validator/json-schema_spec.rb
fidor_schema-0.6.0 spec/validator/json-schema_spec.rb