module RspecApiHelpers::Json

Public Instance Methods

parse_json(json) click to toggle source
# File lib/rspec_api_helpers/json.rb, line 10
def parse_json(json)
  ActiveSupport::HashWithIndifferentAccess.new(JSON.parse json)
end
response_body() click to toggle source
# File lib/rspec_api_helpers/json.rb, line 6
def response_body
  @response_body ||= parse_json response.body
end