From b129b1eb955aa843990fdfe5174863af9bfc8da8 Mon Sep 17 00:00:00 2001 From: rubiii Date: Sat, 5 Jan 2013 17:11:46 +0100 Subject: [PATCH] extracted headers to make this spec more readable --- spec/savon/client_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/savon/client_spec.rb b/spec/savon/client_spec.rb index 2c454b60..246ae20f 100644 --- a/spec/savon/client_spec.rb +++ b/spec/savon/client_spec.rb @@ -87,7 +87,8 @@ end it "sets the cookies for the next request" do - last_response = new_http_response(:headers => { "Set-Cookie" => "some-cookie=choc-chip; Path=/; HttpOnly" }) + headers = { "Set-Cookie" => "some-cookie=choc-chip; Path=/; HttpOnly" } + last_response = new_http_response(:headers => headers) client = new_client HTTPI.stubs(:post).returns(last_response)