diff --git a/test/schema/catalog.json b/test/schema/data/catalog.json similarity index 100% rename from test/schema/catalog.json rename to test/schema/data/catalog.json diff --git a/test/schema/catalog.jsonld b/test/schema/data/catalog.jsonld similarity index 100% rename from test/schema/catalog.jsonld rename to test/schema/data/catalog.jsonld diff --git a/test/schema/dataset.json b/test/schema/data/dataset.json similarity index 100% rename from test/schema/dataset.json rename to test/schema/data/dataset.json diff --git a/test/schema/distribution.json b/test/schema/data/distribution.json similarity index 100% rename from test/schema/distribution.json rename to test/schema/data/distribution.json diff --git a/test/schema/organization.json b/test/schema/data/organization.json similarity index 100% rename from test/schema/organization.json rename to test/schema/data/organization.json diff --git a/test/schema/vcard.json b/test/schema/data/vcard.json similarity index 100% rename from test/schema/vcard.json rename to test/schema/data/vcard.json diff --git a/test/test_datajson.rb b/test/test_datajson.rb index b47541c0c..231840da7 100644 --- a/test/test_datajson.rb +++ b/test/test_datajson.rb @@ -3,7 +3,7 @@ class TestDataJson < Test::Unit::TestCase def test_valid_data_json - schema_path = File.join(__dir__, "schema", "catalog.json") + schema_path = File.join(__dir__, "schema", "data", "catalog.json") datajson_path = File.join(__dir__, "..", "data.json") assert_nothing_raised(JSON::Schema::ValidationError) { JSON::Validator.validate!(schema_path, datajson_path, schema_reader: SchemaReader.new) @@ -15,7 +15,7 @@ def test_valid_data_json class SchemaReader < JSON::Schema::Reader def read(location) filename = URI(location).path.split('/').last - body = read_file(File.join(__dir__, "schema", filename)) + body = read_file(File.join(__dir__, "schema", "data", filename)) JSON::Schema.new(JSON::Validator.parse(body), location) end end