module JsonapiSpec::Helpers

Public Instance Methods

parse_jsonapi(json) click to toggle source
# 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