diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-10-16 21:59:21 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-10-16 21:59:21 +0300 |
commit | 10ff01acd95d42314b4eb923e5b7a7191356b73e (patch) | |
tree | dc56d5f466ddae5d4b85e4584f21aa9270c7ebfc /test/web/twitter_api/password_controller_test.exs | |
parent | e3b4a3e96b2ffbc6d920155cd41687414045d4d6 (diff) | |
download | pleroma-10ff01acd95d42314b4eb923e5b7a7191356b73e.tar.gz pleroma-10ff01acd95d42314b4eb923e5b7a7191356b73e.zip |
[#1304] Moved all non-mutes / non-blocks fields from User.Info to User. WIP.
Diffstat (limited to 'test/web/twitter_api/password_controller_test.exs')
-rw-r--r-- | test/web/twitter_api/password_controller_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/twitter_api/password_controller_test.exs b/test/web/twitter_api/password_controller_test.exs index dc6d4e3e3..840c84a05 100644 --- a/test/web/twitter_api/password_controller_test.exs +++ b/test/web/twitter_api/password_controller_test.exs @@ -59,7 +59,7 @@ defmodule Pleroma.Web.TwitterAPI.PasswordControllerTest do end test "it sets password_reset_pending to false", %{conn: conn} do - user = insert(:user, info: %{password_reset_pending: true}) + user = insert(:user, password_reset_pending: true) {:ok, token} = PasswordResetToken.create_token(user) {:ok, _access_token} = Token.create_token(insert(:oauth_app), user, %{}) @@ -75,7 +75,7 @@ defmodule Pleroma.Web.TwitterAPI.PasswordControllerTest do |> post("/api/pleroma/password_reset", %{data: params}) |> html_response(:ok) - assert User.get_by_id(user.id).info.password_reset_pending == false + assert User.get_by_id(user.id).password_reset_pending == false end end end |