Add test when local is false

This commit is contained in:
Maxim Filippov 2019-03-13 17:56:15 +03:00
parent d5edff6ce6
commit 4872914d32
1 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ test "/api/pleroma/admin/password_reset" do
describe "GET /api/pleroma/admin/users" do
test "renders users array for the first page" do
admin = insert(:user, info: %{is_admin: true})
user = insert(:user)
user = insert(:user, local: false)
conn =
build_conn()
@ -357,7 +357,7 @@ test "renders users array for the first page" do
"id" => user.id,
"nickname" => user.nickname,
"roles" => %{"admin" => false, "moderator" => false},
"local" => true
"local" => false
}
]
}