diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-06-26 20:28:19 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-06-27 03:19:38 +0300 |
commit | 4076eb3fcf5307ea2f023cd5f6ca81b35d1f2f00 (patch) | |
tree | 8682a9f6bb7843c9ae7a02c4a1bdb1fda032b220 /spec | |
parent | 7447beb04a0f6746db5b1fec8bba2ef28143fe08 (diff) |
Bump json-schema and remove json-schema-rspec (unmaintained)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/exporter_spec.rb | 3 | ||||
-rw-r--r-- | spec/spec_helper.rb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/spec/integration/exporter_spec.rb b/spec/integration/exporter_spec.rb index 7794c07de..5a17f98d8 100644 --- a/spec/integration/exporter_spec.rb +++ b/spec/integration/exporter_spec.rb @@ -16,7 +16,8 @@ describe Diaspora::Exporter do %i[generic_user_data activity status_messages_flavours work_aspect] ) - expect(JSON.parse(json)).to match_json_schema(:archive_schema) + errors = JSON::Validator.fully_validate("lib/schemas/archive-format.json", JSON.parse(json)) + expect(errors).to be_empty end it "contains basic user data" do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0fe4e1097..3cbdbaff0 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -133,9 +133,6 @@ RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods - config.include JSON::SchemaMatchers - config.json_schemas[:archive_schema] = "lib/schemas/archive-format.json" - JSON::Validator.add_schema( JSON::Schema.new( DiasporaFederation::Schemas.federation_entities, |