test/response_test.rb in sawyer-0.0.3 vs test/response_test.rb in sawyer-0.0.4

- old
+ new

@@ -7,10 +7,10 @@ @stubs = Faraday::Adapter::Test::Stubs.new @agent = Sawyer::Agent.new "http://foo.com" do |conn| conn.builder.handlers.delete(Faraday::Adapter::NetHttp) conn.adapter :test, @stubs do |stub| stub.get '/' do - [200, {'Content-Type' => 'application/json'}, Yajl.dump( + [200, {'Content-Type' => 'application/json'}, Sawyer::Agent.encode( :a => 1, :_links => { :self => {:href => '/a', :method => 'POST'} } )]