1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-10 09:02:50 +00:00
Files
classic-wow-forums/test/myapp_web/controllers/page_controller_test.exs

12 lines
305 B
Elixir

defmodule MyAppWeb.PageControllerTest do
use MyAppWeb.ConnCase, async: true
test "index.html should be cached" do
assert Cachex.get(:myapp, "index.html") == {:missing, nil}
conn = build_conn() |> get("/lsakdjfl")
{ok, _} = Cachex.get(:myapp, "index.html")
assert ok == :ok
end
end