firehose/app/test/firehose_web/controllers/page_controller_test.exs
Willem van den Ende 9426582abc Refactor conn aliasing in controller tests to use pipe chains
Applied refactor_conn_aliasing.sh to eliminate conn shadowing.

Show draft posts in test and dev
2026-03-20 21:36:08 +00:00

10 lines
256 B
Elixir

defmodule FirehoseWeb.PageControllerTest do
use FirehoseWeb.ConnCase
test "GET /", %{conn: conn} do
body = conn |> get(~p"/") |> html_response(200)
assert body =~ "Drinking from the firehose"
assert body =~ "Willem van den Ende"
end
end