Add test for PageHTML home template
Added test to cover the home.html template rendering. This improves PageHTML coverage from 0% to 100%.
This commit is contained in:
parent
6e02dc460a
commit
89b038a14f
1 changed files with 11 additions and 0 deletions
11
test/towerops_web/controllers/page_html_test.exs
Normal file
11
test/towerops_web/controllers/page_html_test.exs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
defmodule ToweropsWeb.PageHTMLTest do
|
||||
use ToweropsWeb.ConnCase, async: true
|
||||
|
||||
import Phoenix.Template, only: [render_to_string: 4]
|
||||
|
||||
test "renders home.html" do
|
||||
html = render_to_string(ToweropsWeb.PageHTML, "home", "html", flash: %{})
|
||||
assert html =~ "Network monitoring"
|
||||
assert html =~ "made simple"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue