Sha256: 23599f3abffaf7660a2aac12bb087695d0edce435ef332b6936aa8447ba361d8

Contents?: true

Size: 733 Bytes

Versions: 31

Compression:

Stored size: 733 Bytes

Contents

require 'helper.rb'

class TestEntity < TestHelper
    def test_entity
        errors = JSON::Validator.fully_validate('entity.json', @@example + 'entity.json', strict: @@strict, list: true)
        assert(errors.empty?, errors.join("\n"))
    end
    def test_index
        errors = JSON::Validator.fully_validate('entity.json', @@example + 'entityIndex.json', fragment:'#/definitions/index', strict: @@strict, list: true)
        assert(errors.empty?, errors.join("\n"))
    end
    def test_foreignKey
        errors = JSON::Validator.fully_validate('entity.json', @@example + 'entityForeignKey.json', fragment:'#/definitions/foreignKey', strict: @@strict, list: true)
        assert(errors.empty?, errors.join("\n"))
    end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
adiwg-mdjson_schemas-2.9.2.pre.beta.21 test/tc_entity.rb
adiwg-mdjson_schemas-2.9.2.pre.beta.20 test/tc_entity.rb
adiwg-mdjson_schemas-2.9.2.pre.beta.19 test/tc_entity.rb
adiwg-mdjson_schemas-2.9.1 test/tc_entity.rb
adiwg-mdjson_schemas-2.9.0 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.1 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0.pre.beta9 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0.pre.beta8 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0.pre.rc8 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0.pre.rc7 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0.pre.beta6 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0.pre.beta3 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0.pre.beta2 test/tc_entity.rb
adiwg-mdjson_schemas-2.8.0.pre.beta test/tc_entity.rb
adiwg-mdjson_schemas-2.7.0 test/tc_entity.rb
adiwg-mdjson_schemas-2.6.3 test/tc_entity.rb
adiwg-mdjson_schemas-2.6.2 test/tc_entity.rb
adiwg-mdjson_schemas-2.6.1 test/tc_entity.rb
adiwg-mdjson_schemas-2.6.0 test/tc_entity.rb