diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2019-09-14 18:29:51 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2019-09-14 18:29:51 +0300 |
commit | d7457c9165b83c0f1514cf0532b5a8bdc515ea02 (patch) | |
tree | 65209338d595c55397f85ad2295bc48b778b820e /test/web/twitter_api/util_controller_test.exs | |
parent | 0bd2b85edbf3b7062570778649cf2b77cc7a0bce (diff) | |
parent | 3ae448b592214b43af1d079c997c6f6b91d31aeb (diff) | |
download | pleroma-d7457c9165b83c0f1514cf0532b5a8bdc515ea02.tar.gz pleroma-d7457c9165b83c0f1514cf0532b5a8bdc515ea02.zip |
Merge branch 'develop' into refactor/subscription
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r-- | test/web/twitter_api/util_controller_test.exs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs index a3c6145c0..187abf427 100644 --- a/test/web/twitter_api/util_controller_test.exs +++ b/test/web/twitter_api/util_controller_test.exs @@ -8,6 +8,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do alias Pleroma.Repo alias Pleroma.User alias Pleroma.Web.CommonAPI + import ExUnit.CaptureLog import Pleroma.Factory import Mock @@ -338,12 +339,14 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do test "show follow page with error when user cannot fecth by `acct` link", %{conn: conn} do user = insert(:user) - response = - conn - |> assign(:user, user) - |> get("/ostatus_subscribe?acct=https://mastodon.social/users/not_found") + assert capture_log(fn -> + response = + conn + |> assign(:user, user) + |> get("/ostatus_subscribe?acct=https://mastodon.social/users/not_found") - assert html_response(response, 200) =~ "Error fetching user" + assert html_response(response, 200) =~ "Error fetching user" + end) =~ "Object has been deleted" end end |