mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 17:12:48 +00:00
13 lines
351 B
Elixir
13 lines
351 B
Elixir
defmodule MyAppWeb.PageControllerTest do
|
|
use MyAppWeb.ConnCase, async: true
|
|
|
|
test "index.html should be cached in prod" do
|
|
System.put_env("MIX_ENV", "prod")
|
|
assert Cachex.get(:myapp, "index.html") == {:missing, nil}
|
|
conn = build_conn() |> get("/lsakdjfl")
|
|
{ok, _} = Cachex.get(:myapp, "index.html")
|
|
assert ok == :ok
|
|
end
|
|
|
|
end
|