projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c746087
)
We actually want the user id not nickname in the test...
author
Mark Felder
<feld@FreeBSD.org>
Fri, 5 Apr 2019 17:11:19 +0000
(12:11 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Fri, 5 Apr 2019 17:11:19 +0000
(12:11 -0500)
test/web/admin_api/admin_api_controller_test.exs
patch
|
blob
|
history
diff --git
a/test/web/admin_api/admin_api_controller_test.exs
b/test/web/admin_api/admin_api_controller_test.exs
index 9c1cae6b76a4a0e396e34662fc2f7768d1430e4a..dd2fbfb150c69db82afc116b950697fdc52ea5c3 100644
(file)
--- a/
test/web/admin_api/admin_api_controller_test.exs
+++ b/
test/web/admin_api/admin_api_controller_test.exs
@@
-89,8
+89,8
@@
defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
"followed" => user.nickname
})
- user = User.get_by_
nickname
(user.id)
- follower = User.get_by_
nickname
(follower.id)
+ user = User.get_by_
id
(user.id)
+ follower = User.get_by_
id
(follower.id)
assert User.following?(follower, user)
end
@@
-113,8
+113,8
@@
defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
"followed" => user.nickname
})
- user = User.get_by_
nickname
(user.id)
- follower = User.get_by_
nickname
(follower.id)
+ user = User.get_by_
id
(user.id)
+ follower = User.get_by_
id
(follower.id)
refute User.following?(follower, user)
end