mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-12 01:52:49 +00:00
prepare router to serve single page web app
This commit is contained in:
11
test/myapp_web/controllers/page_controller_test.exs
Normal file
11
test/myapp_web/controllers/page_controller_test.exs
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user