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:
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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user