mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-12 10:02:49 +00:00
server - fix tests - added reply tests
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
defmodule MyAppWeb.PageControllerTest do
|
||||
use MyAppWeb.ConnCase, async: true
|
||||
|
||||
test "index.html should be cached" do
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user