2018-10-11 17:37:39 +02:00
|
|
|
defmodule MobilizonWeb.PageControllerTest do
|
|
|
|
use MobilizonWeb.ConnCase
|
2018-11-27 17:54:54 +01:00
|
|
|
import Mobilizon.Factory
|
2017-12-08 09:58:14 +01:00
|
|
|
|
|
|
|
test "GET /", %{conn: conn} do
|
2018-07-27 10:45:35 +02:00
|
|
|
conn = get(conn, "/")
|
2018-01-13 23:33:03 +01:00
|
|
|
assert html_response(conn, 200)
|
2017-12-08 09:58:14 +01:00
|
|
|
end
|
2018-11-27 17:54:54 +01:00
|
|
|
|
|
|
|
test "GET /@actor", %{conn: conn} do
|
|
|
|
actor = insert(:actor)
|
|
|
|
conn = get(conn, "/@#{actor.preferred_username}")
|
|
|
|
assert html_response(conn, 200)
|
|
|
|
end
|
2017-12-08 09:58:14 +01:00
|
|
|
end
|