spec/middleware_spec.rb in em-http-request-1.1.0 vs spec/middleware_spec.rb in em-http-request-1.1.1

- old
+ new

@@ -115,14 +115,14 @@ end context "jsonify" do class JSONify def request(client, head, body) - [head, Yajl::Encoder.encode(body)] + [head, MultiJson.dump(body)] end def response(resp) - resp.response = Yajl::Parser.parse(resp.response) + resp.response = MultiJson.load(resp.response) end end it "should use middleware to JSON encode and JSON decode the body" do EventMachine.run {