diff options
| author | marcin mikołajczak <git@mkljczk.pl> | 2022-01-23 08:42:18 +0100 | 
|---|---|---|
| committer | marcin mikołajczak <git@mkljczk.pl> | 2022-01-23 09:13:33 +0100 | 
| commit | 0266bc3c96c30cfee929c55babdca679ca17a479 (patch) | |
| tree | ea2faa779f4dde27371cdac662d053c4ff60c1ef /test | |
| parent | aaa9314f4cf53b3510946234ad7f361257943af0 (diff) | |
| download | pleroma-0266bc3c96c30cfee929c55babdca679ca17a479.tar.gz pleroma-0266bc3c96c30cfee929c55babdca679ca17a479.zip | |
Birthdays: hide_birthday -> show_birthday
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'test')
| -rw-r--r-- | test/pleroma/web/mastodon_api/update_credentials_test.exs | 6 | ||||
| -rw-r--r-- | test/pleroma/web/pleroma_api/controllers/account_controller_test.exs | 14 | 
2 files changed, 11 insertions, 9 deletions
| diff --git a/test/pleroma/web/mastodon_api/update_credentials_test.exs b/test/pleroma/web/mastodon_api/update_credentials_test.exs index 5507a77b0..9073cd771 100644 --- a/test/pleroma/web/mastodon_api/update_credentials_test.exs +++ b/test/pleroma/web/mastodon_api/update_credentials_test.exs @@ -380,14 +380,14 @@ defmodule Pleroma.Web.MastodonAPI.UpdateCredentialsTest do        assert user_data["pleroma"]["birthday"] == "2001-02-12"      end -    test "updates the user's hide_birthday status", %{conn: conn} do +    test "updates the user's show_birthday status", %{conn: conn} do        res =          patch(conn, "/api/v1/accounts/update_credentials", %{ -          "hide_birthday" => true +          "show_birthday" => true          })        assert user_data = json_response_and_validate_schema(res, 200) -      assert user_data["pleroma"]["hide_birthday"] == true +      assert user_data["pleroma"]["source"]["show_birthday"] == true      end      test "emojis in fields labels", %{conn: conn} do diff --git a/test/pleroma/web/pleroma_api/controllers/account_controller_test.exs b/test/pleroma/web/pleroma_api/controllers/account_controller_test.exs index 8f3e565ee..15682e40a 100644 --- a/test/pleroma/web/pleroma_api/controllers/account_controller_test.exs +++ b/test/pleroma/web/pleroma_api/controllers/account_controller_test.exs @@ -312,12 +312,14 @@ defmodule Pleroma.Web.PleromaAPI.AccountControllerTest do        %{id: id1} =          user1 =          insert(:user, %{ -          birthday: "2001-02-12" +          birthday: "2001-02-12", +          show_birthday: true          })        user2 =          insert(:user, %{ -          birthday: "2001-02-14" +          birthday: "2001-02-14", +          show_birthday: true          })        user3 = insert(:user) @@ -328,7 +330,7 @@ defmodule Pleroma.Web.PleromaAPI.AccountControllerTest do        [%{"id" => ^id1}] =          conn -        |> get("/api/v1/pleroma/birthday_reminders?day=12&month=2") +        |> get("/api/v1/pleroma/birthdays?day=12&month=2")          |> json_response_and_validate_schema(:ok)      end @@ -338,14 +340,14 @@ defmodule Pleroma.Web.PleromaAPI.AccountControllerTest do        user1 =          insert(:user, %{            birthday: "2001-02-12", -          hide_birthday: true +          show_birthday: false          })        %{id: id2} =          user2 =          insert(:user, %{            birthday: "2001-02-12", -          hide_birthday: false +          show_birthday: true          })        CommonAPI.follow(user, user1) @@ -353,7 +355,7 @@ defmodule Pleroma.Web.PleromaAPI.AccountControllerTest do        [%{"id" => ^id2}] =          conn -        |> get("/api/v1/pleroma/birthday_reminders?day=12&month=2") +        |> get("/api/v1/pleroma/birthdays?day=12&month=2")          |> json_response_and_validate_schema(:ok)      end    end | 
