this should be looking at the follower's bio, not the user's bio.

fixes test.
This commit is contained in:
ensra 2018-08-21 15:25:21 +01:00
parent f533daffdb
commit e883587cc3

View file

@ -144,8 +144,8 @@ test "A user that follows you", %{user: user} do
"name" => follower.name, "name" => follower.name,
"screen_name" => follower.nickname, "screen_name" => follower.nickname,
"name_html" => follower.name, "name_html" => follower.name,
"description" => HtmlSanitizeEx.strip_tags(user.bio |> String.replace("<br>", "\n")), "description" => HtmlSanitizeEx.strip_tags(follower.bio |> String.replace("<br>", "\n")),
"description_html" => HtmlSanitizeEx.basic_html(user.bio), "description_html" => HtmlSanitizeEx.basic_html(follower.bio),
"created_at" => follower.inserted_at |> Utils.format_naive_asctime(), "created_at" => follower.inserted_at |> Utils.format_naive_asctime(),
"favourites_count" => 0, "favourites_count" => 0,
"statuses_count" => 0, "statuses_count" => 0,