Skip to content

Commit

Permalink
Merge pull request phoenixframework#821 from SmartCasual/fix-language…
Browse files Browse the repository at this point in the history
…-in-flash-test

Use some clearer test names in `flash_test`
  • Loading branch information
josevalim committed Apr 27, 2015
2 parents 2cebf53 + fb216f6 commit a84bfc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/phoenix/controller/flash_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Phoenix.Controller.FlashTest do
:ok
end

test "flash is persisted when status is in redirect" do
test "flash is persisted when status is a redirect" do
for status <- 300..308 do
conn = conn(:get, "/") |> with_session |> fetch_flash()
|> put_flash(:notice, "elixir") |> send_resp(status, "ok")
Expand All @@ -31,7 +31,7 @@ defmodule Phoenix.Controller.FlashTest do
end
end

test "flash does not write to session in case it is empty" do
test "flash does not write to session when it is empty" do
conn = conn(:get, "/") |> with_session |> fetch_flash() |> send_resp(200, "ok")
assert get_resp_header(conn, "set-cookie") == []
end
Expand Down

0 comments on commit a84bfc5

Please sign in to comment.