Sha256: e327a6c50558a04a993a7111debbc760e1d87ab636780bb57a993a6da3c493bb

Contents?: true

Size: 264 Bytes

Versions: 27

Compression:

Stored size: 264 Bytes

Contents

def parsed_response
  parsed_response = parse_json(last_response.body)
  if parsed_response.respond_to?(:with_indifferent_access)
    parsed_response.with_indifferent_access
  else
    parsed_response
  end
end

def parse_json(response)
  JSON.parse(response)
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
locomotivecms-3.3.0 spec/support/response.rb
locomotivecms-3.3.0.rc3 spec/support/response.rb
locomotivecms-3.3.0.rc2 spec/support/response.rb
locomotivecms-3.1.2 spec/support/response.rb
locomotivecms-3.2.1 spec/support/response.rb
locomotivecms-3.3.0.rc1 spec/support/response.rb
locomotivecms-3.2.0 spec/support/response.rb
locomotivecms-3.2.0.rc2 spec/support/response.rb
locomotivecms-3.2.0.rc1 spec/support/response.rb
locomotivecms-3.1.1 spec/support/response.rb
locomotivecms-3.1.0 spec/support/response.rb
locomotivecms-3.1.0.rc3 spec/support/response.rb
locomotivecms-3.1.0.rc2 spec/support/response.rb
locomotivecms-3.1.0.rc1 spec/support/response.rb
locomotivecms-3.0.1 spec/support/response.rb
locomotivecms-3.0.0 spec/support/response.rb
locomotivecms-3.0.0.rc7 spec/support/response.rb
locomotivecms-3.0.0.rc6 spec/support/response.rb
locomotivecms-3.0.0.rc5 spec/support/response.rb
locomotivecms-3.0.0.rc4 spec/support/response.rb