Registry / testing / json-matchers

json-matchers

JSON →
library0.11.1rbrubygemsunverified

Validate your Rails JSON API responses against JSON schemas using RSpec matchers.

gem install json_matchers
INSTALL
IMPORT
SIG · JSON-MATCHERS
J
json-matchers
testingrubyv0.11.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonMatchers
require 'json_matchers'

Use the match_json_schema matcher in an RSpec test.

require 'json_matchers' RSpec.describe 'API' do it 'matches schema' do expect(response.body).to match_json_schema('users') end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
json-matchers — gem install json-matchers · libregistry