diff options
author | kaniini <nenolod@gmail.com> | 2018-12-01 22:11:52 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2018-12-01 22:11:52 +0000 |
commit | 371d96b1da85960dafea9665b8bc32ba553b1555 (patch) | |
tree | 43b665e9cb10ee18ba9f8bbe63803265e6582f7f /test/web/node_info_test.exs | |
parent | a836d7b93a1e00cac0f0ffa5aed0b71d0c715ecf (diff) | |
parent | f18b86fd5f01653dd6e860b2d67021bdce684d6d (diff) | |
download | pleroma-371d96b1da85960dafea9665b8bc32ba553b1555.tar.gz pleroma-371d96b1da85960dafea9665b8bc32ba553b1555.zip |
Merge branch 'validate-user-info' into 'develop'
Validate user info
See merge request pleroma/pleroma!465
Diffstat (limited to 'test/web/node_info_test.exs')
-rw-r--r-- | test/web/node_info_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/node_info_test.exs b/test/web/node_info_test.exs index a6376453c..a5b0b7869 100644 --- a/test/web/node_info_test.exs +++ b/test/web/node_info_test.exs @@ -4,7 +4,7 @@ defmodule Pleroma.Web.NodeInfoTest do import Pleroma.Factory test "nodeinfo shows staff accounts", %{conn: conn} do - user = insert(:user, %{local: true, info: %{"is_moderator" => true}}) + user = insert(:user, %{local: true, info: %{is_moderator: true}}) conn = conn @@ -15,7 +15,7 @@ defmodule Pleroma.Web.NodeInfoTest do assert user.ap_id in result["metadata"]["staffAccounts"] end - test "returns 404 when federation is disabled" do + test "returns 404 when federation is disabled", %{conn: conn} do instance = Application.get_env(:pleroma, :instance) |> Keyword.put(:federating, false) @@ -37,7 +37,7 @@ defmodule Pleroma.Web.NodeInfoTest do Application.put_env(:pleroma, :instance, instance) end - test "returns 200 when federation is enabled" do + test "returns 200 when federation is enabled", %{conn: conn} do conn |> get("/.well-known/nodeinfo") |> json_response(200) |