summaryrefslogtreecommitdiff
path: root/test/web/node_info_test.exs
diff options
context:
space:
mode:
authorRin Toshaka <rinpatch@sdf.org>2018-12-05 14:16:55 +0100
committerRin Toshaka <rinpatch@sdf.org>2018-12-05 14:16:55 +0100
commit9938fa3293478e0dfe5f8d82c1526e0cd3747cf1 (patch)
treeff6497bc68b1588cf3b54cc6b9e9135ef69a17d1 /test/web/node_info_test.exs
parent6396f1b58f69b727e801df4b52a32c47da08e517 (diff)
parent22eff1791204864d0536e71c13649d0030c409a7 (diff)
downloadpleroma-9938fa3293478e0dfe5f8d82c1526e0cd3747cf1.tar.gz
pleroma-9938fa3293478e0dfe5f8d82c1526e0cd3747cf1.zip
Merge develop to refactor/mix-tasks
Diffstat (limited to 'test/web/node_info_test.exs')
-rw-r--r--test/web/node_info_test.exs6
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)