refactored for new project name
This commit is contained in:
parent
0039146cd4
commit
82ab1d1ea5
113 changed files with 417 additions and 412 deletions
test/shift73k_web/views
14
test/shift73k_web/views/error_view_test.exs
Normal file
14
test/shift73k_web/views/error_view_test.exs
Normal file
|
@ -0,0 +1,14 @@
|
|||
defmodule Shift73kWeb.ErrorViewTest do
|
||||
use Shift73kWeb.ConnCase, async: true
|
||||
|
||||
# Bring render/3 and render_to_string/3 for testing custom views
|
||||
import Phoenix.View
|
||||
|
||||
test "renders 404.html" do
|
||||
assert render_to_string(Shift73kWeb.ErrorView, "404.html", []) == "Not Found"
|
||||
end
|
||||
|
||||
test "renders 500.html" do
|
||||
assert render_to_string(Shift73kWeb.ErrorView, "500.html", []) == "Internal Server Error"
|
||||
end
|
||||
end
|
8
test/shift73k_web/views/layout_view_test.exs
Normal file
8
test/shift73k_web/views/layout_view_test.exs
Normal file
|
@ -0,0 +1,8 @@
|
|||
defmodule Shift73kWeb.LayoutViewTest do
|
||||
use Shift73kWeb.ConnCase, async: true
|
||||
|
||||
# When testing helpers, you may want to import Phoenix.HTML and
|
||||
# use functions such as safe_to_string() to convert the helper
|
||||
# result into an HTML string.
|
||||
# import Phoenix.HTML
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue