diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-12-03 16:31:00 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-12-03 16:31:00 +0000 |
commit | 88b05aeabb23412530f6b74934bc3d2d3fe8c29f (patch) | |
tree | cc533e19e236ac317a003771d63cf707f5f974f7 /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 42ef7cd227ba075fbd05e9625dc880feddee4417 (diff) | |
parent | 4b70e5eae93f34c1b98263a96d4e1380ef579ede (diff) | |
download | pleroma-88b05aeabb23412530f6b74934bc3d2d3fe8c29f.tar.gz pleroma-88b05aeabb23412530f6b74934bc3d2d3fe8c29f.zip |
Merge branch 'fix/parse-user-bio' into 'develop'
Parse user's bio on register
See merge request pleroma/pleroma!492
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 7042a6ace..098acb59f 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -1253,14 +1253,21 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do describe "updating credentials" do test "updates the user's bio", %{conn: conn} do user = insert(:user) + user2 = insert(:user) conn = conn |> assign(:user, user) - |> patch("/api/v1/accounts/update_credentials", %{"note" => "I drink #cofe"}) + |> patch("/api/v1/accounts/update_credentials", %{ + "note" => "I drink #cofe with @#{user2.nickname}" + }) assert user = json_response(conn, 200) - assert user["note"] == "I drink #cofe" + + assert user["note"] == + "I drink <a href=\"http://localhost:4001/tag/cofe\">#cofe</a> with <span><a href=\"#{ + user2.ap_id + }\">@<span>#{user2.nickname}</span></a></span>" end test "updates the user's locking status", %{conn: conn} do |