Module: JsonapiSpec::Helpers
- Extended by:
- Helpers
- Included in:
- Helpers, Matchers::BeValidJsonapi, Matchers::HaveJsonapiAttribute, Matchers::HaveJsonapiError, Matchers::HaveJsonapiLink, Matchers::HaveJsonapiRelationship
- Defined in:
- lib/jsonapi_spec/helpers.rb
Instance Method Summary collapse
Instance Method Details
#parse_jsonapi(json) ⇒ Object
8 9 10 11 12 |
# File 'lib/jsonapi_spec/helpers.rb', line 8 def parse_jsonapi(json) json = JSON.parse(json) if json.is_a?(String) JSONAPI.parse_response!(json) json end |