mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 09:02:50 +00:00
12 lines
305 B
Elixir
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
|