spec/integration/keepalive_spec.rb in goliath-0.9.4 vs spec/integration/keepalive_spec.rb in goliath-1.0.0.beta.1

- old
+ new

@@ -7,16 +7,16 @@ conn = EM::HttpRequest.new('http://localhost:9901') r1 = conn.get(:query => {:echo => 'test'}, :keepalive => true) r1.errback { fail } r1.callback do |c| - b = Yajl::Parser.parse(c.response) + b = MultiJson.load(c.response) b['response'].should == 'test' r2 = conn.get(:query => {:echo => 'test2'}) r2.errback { fail } r2.callback do |c| - b = Yajl::Parser.parse(c.response) + b = MultiJson.load(c.response) b['response'].should == 'test2' stop end end