Fix nodeinfo path

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-09-03 17:53:31 +02:00
parent 970a40c22e
commit c2875a6189
3 changed files with 15 additions and 8 deletions

View File

@@ -9,7 +9,8 @@ defmodule EventosWeb.NodeinfoControllerTest do
assert json_response(conn, 200) == %{
"links" => [
%{
"href" => EventosWeb.Endpoint.url() <> "/nodeinfo/2.0.json",
"href" =>
EventosWeb.Router.Helpers.nodeinfo_url(EventosWeb.Endpoint, :nodeinfo, "2.0"),
"rel" => "http://nodeinfo.diaspora.software/ns/schema/2.0"
}
]
@@ -17,7 +18,7 @@ defmodule EventosWeb.NodeinfoControllerTest do
end
test "Get node info", %{conn: conn} do
conn = get(conn, nodeinfo_path(conn, :nodeinfo, "2.0.json"))
conn = get(conn, nodeinfo_path(conn, :nodeinfo, "2.0"))
resp = json_response(conn, 200)