lib/rspec-api/http/remote/route.rb in rspec-api-0.1.2 vs lib/rspec-api/http/remote/route.rb in rspec-api-0.2.0

- old
+ new

@@ -6,10 +6,10 @@ def send_request(verb, route, body) logger = Logger.new 'log/faraday.log' conn = Faraday.new 'https://api.github.com/' do |c| # TODO: Pass host as a parameter # NOTE: The order is **important**! Leave HttpCache first - c.use Faraday::HttpCache, store: :file_store, store_options: ['/tmp/faraday'], logger: logger + c.use Faraday::HttpCache, serializer: Marshal, store: :file_store, store_options: ['/tmp/faraday'], logger: logger c.use FaradayMiddleware::EncodeJson # query params are not JSON(body) but data are c.use Faraday::Response::Logger, logger c.use Faraday::Adapter::NetHttp end \ No newline at end of file