Skip to content

Commit

Permalink
extracted headers to make this spec more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiii committed Jan 5, 2013
1 parent f78f0ba commit b129b1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/savon/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b129b1e

Please sign in to comment.