diff options
| author | lambda <pleromagit@rogerbraun.net> | 2018-11-06 15:09:52 +0000 |
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2018-11-06 15:09:52 +0000 |
| commit | 25512aa29cae22b73ee45a22954693c1a130ea3e (patch) | |
| tree | ef0f639fe4c57cf9160d0e69e2918461ecf9a008 /test/web/activity_pub | |
| parent | 0f6c4635a64e89cc72921456e6cfa3d488d894bf (diff) | |
| parent | 7d328c658da69ec236d10fa89d23f2a6886b3205 (diff) | |
| download | pleroma-25512aa29cae22b73ee45a22954693c1a130ea3e.tar.gz pleroma-25512aa29cae22b73ee45a22954693c1a130ea3e.zip | |
Merge branch 'remove-config-agent' into 'develop'
Get rid of Pleroma.Config in favor of Application
See merge request pleroma/pleroma!428
Diffstat (limited to 'test/web/activity_pub')
| -rw-r--r-- | test/web/activity_pub/activity_pub_controller_test.exs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs index 5b46bbe76..1c24b348c 100644 --- a/test/web/activity_pub/activity_pub_controller_test.exs +++ b/test/web/activity_pub/activity_pub_controller_test.exs @@ -4,12 +4,9 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do alias Pleroma.Web.ActivityPub.{UserView, ObjectView} alias Pleroma.{Repo, User} alias Pleroma.Activity - alias Pleroma.Config describe "/relay" do test "with the relay active, it returns the relay user", %{conn: conn} do - Config.put([:instance, :allow_relay], true) - res = conn |> get(activity_pub_path(conn, :relay)) @@ -19,12 +16,14 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do end test "with the relay disabled, it returns 404", %{conn: conn} do - Config.put([:instance, :allow_relay], false) + Pleroma.Config.put([:instance, :allow_relay], false) res = conn |> get(activity_pub_path(conn, :relay)) |> json_response(404) + + Pleroma.Config.put([:instance, :allow_relay], true) end end |
