projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74e9215
)
Fix tests.
author
Lain Iwakura
<lain@soykaf.club>
Tue, 5 Dec 2017 11:18:04 +0000
(12:18 +0100)
committer
Lain Iwakura
<lain@soykaf.club>
Tue, 5 Dec 2017 11:18:04 +0000
(12:18 +0100)
test/web/twitter_api/twitter_api_controller_test.exs
patch
|
blob
|
history
diff --git
a/test/web/twitter_api/twitter_api_controller_test.exs
b/test/web/twitter_api/twitter_api_controller_test.exs
index d12ade1327e56a9509681a46dbcaae4b4900edbe..90d0fa65475c46e2785da116ca428a4826ea32de 100644
(file)
--- a/
test/web/twitter_api/twitter_api_controller_test.exs
+++ b/
test/web/twitter_api/twitter_api_controller_test.exs
@@
-22,7
+22,8
@@
defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|> with_credentials(user.nickname, "test")
|> post("/api/account/verify_credentials.json")
- assert json_response(conn, 200) == UserView.render("show.json", %{user: user})
+ assert response = json_response(conn, 200)
+ assert response == UserView.render("show.json", %{user: user, token: response["token"]})
end
end