From 7b452371e54fc8f20d6ae7a3a048fc8687c7188f Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Fri, 17 Jun 2016 10:31:19 +1000 Subject: [PATCH] Use put_req_header correctly in recycle documentation --- lib/phoenix/test/conn_test.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/phoenix/test/conn_test.ex b/lib/phoenix/test/conn_test.ex index 06d3ea6a86..fd248cefdc 100644 --- a/lib/phoenix/test/conn_test.ex +++ b/lib/phoenix/test/conn_test.ex @@ -85,8 +85,7 @@ defmodule Phoenix.ConnTest do conn = post conn, "/login" # We can also recycle manually in case we want custom headers - conn = recycle(conn) - conn = put_req_header("x-special", "nice") + conn |> recycle() |> put_req_header("x-special", "nice") # No recycling as we did it explicitly conn = delete conn, "/logout"