Registry / testing / rspec-json-expectations

rspec-json-expectations

JSON →
library2.2.0rbrubygemsunverified

Set of matchers and helpers to allow you test your APIs responses like a pro.

gem install rspec-json_expectations
INSTALL
IMPORT
SIG · RSPEC-JSON-EXPECTA
R
rspec-json-expectations
testingrubyv2.2.0
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.

RSpec
require 'rspec/json_expectations'

Use RSpec matchers to test JSON responses.

require 'rspec/json_expectations' describe 'API response' do it 'matches expected JSON' do response = '{"name":"John","age":30}' expect(response).to include_json(name: 'John', age: 30) end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
rspec-json-expectations — gem install rspec-json-expectations · libregistry