Skip to content

Commit

Permalink
fixup! Add JSON validation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyanf14 committed Feb 2, 2024
1 parent 35fd188 commit 0e0ce99
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/json_validation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
json_data = JSON.parse(File.read(json_file))
json_schema = JSON.parse(File.read(json_schema_files.first))

schemer = JSONSchemer.schema(json_schema)
result = schemer.validate(json_data).to_a

expect(result).to eq([])
result = JSONSchemer.schema(json_schema).validate(json_data).to_a
expect(result).to contain_exactly()
end
end
end

0 comments on commit 0e0ce99

Please sign in to comment.