1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-12 10:02:49 +00:00

prepare router to serve single page web app

This commit is contained in:
2018-01-06 14:23:48 -06:00
parent 959c44b8f8
commit 74df75dd77
9 changed files with 52 additions and 3 deletions

View 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

View File

@@ -1,6 +1,5 @@
defmodule MyAppWeb.ThreadControllerTest do
use MyAppWeb.ConnCase, async: true
import MyAppWeb.ThreadController
import MyApp.Data.TestHelpers
test "insert new thread should fail" do