diff options
author | rinpatch <rinpatch@sdf.org> | 2019-05-15 10:56:19 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-05-15 10:56:19 +0000 |
commit | 153c15cdb27a0498d00924b34764aeeab8dcbfc6 (patch) | |
tree | 4e1eb814c87177e14116933ae7f5924c0ae74d74 /test/web/twitter_api/util_controller_test.exs | |
parent | c133c32ef07077daaf581a4f890939b38c1d7feb (diff) | |
parent | ee22fff5ac4631edc6035e349c787d29a13adeaf (diff) | |
download | pleroma-153c15cdb27a0498d00924b34764aeeab8dcbfc6.tar.gz pleroma-153c15cdb27a0498d00924b34764aeeab8dcbfc6.zip |
Merge branch 'legacy-fe-config' into 'develop'
remove deprecated PleromaFE configuration
See merge request pleroma/pleroma!1152
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r-- | test/web/twitter_api/util_controller_test.exs | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs index 14a8225f0..2cd82b3e7 100644 --- a/test/web/twitter_api/util_controller_test.exs +++ b/test/web/twitter_api/util_controller_test.exs @@ -141,7 +141,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do test "it returns the managed config", %{conn: conn} do Pleroma.Config.put([:instance, :managed_config], false) - Pleroma.Config.put([:fe], theme: "rei-ayanami-towel") + Pleroma.Config.put([:frontend_configurations, :pleroma_fe], %{theme: "asuka-hospital"}) response = conn @@ -157,29 +157,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do |> get("/api/statusnet/config.json") |> json_response(:ok) - assert response["site"]["pleromafe"] - end - - test "if :pleroma, :fe is false, it returns the new style config settings", %{conn: conn} do - Pleroma.Config.put([:instance, :managed_config], true) - Pleroma.Config.put([:fe, :theme], "rei-ayanami-towel") - Pleroma.Config.put([:frontend_configurations, :pleroma_fe], %{theme: "asuka-hospital"}) - - response = - conn - |> get("/api/statusnet/config.json") - |> json_response(:ok) - - assert response["site"]["pleromafe"]["theme"] == "rei-ayanami-towel" - - Pleroma.Config.put([:fe], false) - - response = - conn - |> get("/api/statusnet/config.json") - |> json_response(:ok) - - assert response["site"]["pleromafe"]["theme"] == "asuka-hospital" + assert response["site"]["pleromafe"] == %{"theme" => "asuka-hospital"} end end |