dawanda/jsonapi-rspec

Name: jsonapi-rspec

Owner: DaWanda Engineering Team

Description: RSpec matchers for JSON API

Forked from: jsonapi-rb/jsonapi-rspec

Created: 2017-10-09 08:30:14.0

Updated: 2017-10-09 08:30:16.0

Pushed: 2017-10-09 10:33:14.0

Homepage: null

Size: 11

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

jsonapi-rspec

RSpec matchers for JSON API.

Status

Gem Version Build Status Gitter chat

Resources
Installation

Add the following to your application's Gemfile:

'jsonapi-rspec'

And then execute:

ndle

Add to your spec/spec_helpers.rb:

ire 'jsonapi/rspec'

c.configure do |config|
...
nfig.include JSONAPI::RSpec

Usage and documentation

Available matchers:

Advanced examples

Checking for an included resource:

ct(response_body['included'])
o include(have_type('posts').and have_id('1'))
License

jsonapi-rspec is released under the MIT License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.