projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ffc6da
)
Fix follow test semantics.
author
eal
<eal@waifu.club>
Sun, 29 Oct 2017 12:25:11 +0000
(14:25 +0200)
committer
eal
<eal@waifu.club>
Sun, 29 Oct 2017 12:25:11 +0000
(14:25 +0200)
test/web/mastodon_api/mastodon_api_controller_test.exs
patch
|
blob
|
history
diff --git
a/test/web/mastodon_api/mastodon_api_controller_test.exs
b/test/web/mastodon_api/mastodon_api_controller_test.exs
index 4e5dc963f62f9d9313f7a3ae57cac58588a45510..acdb08ac246f8c4deb9887c024596fcd434eb887 100644
(file)
--- a/
test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/
test/web/mastodon_api/mastodon_api_controller_test.exs
@@
-287,7
+287,8
@@
defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|> assign(:user, user)
|> post("/api/v1/follows", %{"uri" => other_user.nickname})
- assert other_user = json_response(conn, 200)
+ assert %{"id" => id} = json_response(conn, 200)
+ assert id == other_user.id
end
test "unimplemented block/mute endpoints" do