diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-07-29 12:50:11 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2020-07-29 12:50:11 -0500 |
commit | 00d090004eefdf6cf2cf644be1d4dcfdd8b0ba35 (patch) | |
tree | bb55aba09ffca5cff593deca38490f658136aba8 | |
parent | 026a51cb27e250a55a03c509390390e8141dc290 (diff) | |
download | pleroma-00d090004eefdf6cf2cf644be1d4dcfdd8b0ba35.tar.gz |
:show_reactions, refactor the other test
-rw-r--r-- | test/web/mastodon_api/controllers/status_controller_test.exs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs index e3f127163..5955d8334 100644 --- a/test/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/web/mastodon_api/controllers/status_controller_test.exs @@ -21,7 +21,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do setup do: clear_config([:instance, :federating]) setup do: clear_config([:instance, :allow_relay]) - setup do: clear_config([:instance, :show_reactions]) setup do: clear_config([:rich_media, :enabled]) setup do: clear_config([:mrf, :policies]) setup do: clear_config([:mrf_keyword, :reject]) @@ -1435,7 +1434,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do end test "returns empty array when :show_reactions is disabled", %{conn: conn, activity: activity} do - Pleroma.Config.put([:instance, :show_reactions], false) + clear_config([:instance, :show_reactions], false) other_user = insert(:user) {:ok, _} = CommonAPI.favorite(other_user, activity.id) |