whichdigital / active-rest-client

ActiveRestClient API Client
https://rubygems.org/gems/active_rest_client
MIT License
386 stars 44 forks source link

Updated the 'Faking calls' example in README #74

Closed gjkliewer closed 9 years ago

gjkliewer commented 9 years ago

I was trying the example faking calls and got the following error:

> rails c
Frame number: 0/4
[1] pry(main)> People.all
ActiveRestClient::Base Adapter set to be net_http
  ActiveRestClient People#all - Faked response found
  ActiveRestClient People#all - Response received 43 bytes
  ActiveRestClient (4.4ms) People#all
MultiJson::ParseError: 399: unexpected token at '{first_name:"Johnny"}, {first_name:"Bob"}]'
from /Users/kleaver/.rvm/gems/ruby-2.1.0@scratch/gems/json-1.8.2/lib/json/common.rb:155:in `parse'
[2] pry(main)>
coveralls commented 9 years ago

Coverage Status

Coverage remained the same at 99.8% when pulling bc2a7288528105c72f76be4b63517f26873bdc9a on kleaver:update-readme-faking-calls-example into a98a2a8b16903597d57c19d9a8c98c743b4107cd on whichdigital:master.