diff options
author | kaniini <nenolod@gmail.com> | 2019-04-16 18:44:07 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-04-16 18:44:07 +0000 |
commit | 73df3046e014ae16e03f16a9c82921652cefcb54 (patch) | |
tree | 00a5d0bb027e65bfa3e7894b489dad7226aa645b /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 02a53d00c93969ff99a460f69e92be5af2628691 (diff) | |
parent | c5d0fffeaf64123334f62343d752467683a67229 (diff) | |
download | pleroma-73df3046e014ae16e03f16a9c82921652cefcb54.tar.gz pleroma-73df3046e014ae16e03f16a9c82921652cefcb54.zip |
Merge branch 'feature/788-separate-email-addresses' into 'develop'
Feature/788 separate email addresses
Closes #788
See merge request pleroma/pleroma!1040
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 48dc8dd2f..f21cf677d 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -2048,13 +2048,14 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do conn = get(conn, "/api/v1/instance") assert result = json_response(conn, 200) + email = Pleroma.Config.get([:instance, :email]) # Note: not checking for "max_toot_chars" since it's optional assert %{ "uri" => _, "title" => _, "description" => _, "version" => _, - "email" => _, + "email" => from_config_email, "urls" => %{ "streaming_api" => _ }, @@ -2063,6 +2064,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do "languages" => _, "registrations" => _ } = result + + assert email == from_config_email end test "get instance stats", %{conn: conn} do |