(Hopefully) improve grammar
[CI skip]
This commit is contained in:
@@ -72,7 +72,7 @@ defmodule Mobilizon.ActorsTest do
|
||||
assert actor_id == Users.get_actor_for_user(user).id
|
||||
end
|
||||
|
||||
test "get_actor_with_preload/1 returns the actor with it's organized events", %{
|
||||
test "get_actor_with_preload/1 returns the actor with its organized events", %{
|
||||
actor: actor
|
||||
} do
|
||||
assert Actors.get_actor_with_preload(actor.id).organized_events == []
|
||||
@@ -113,7 +113,7 @@ defmodule Mobilizon.ActorsTest do
|
||||
end
|
||||
end
|
||||
|
||||
test "get_local_actor_by_name_with_preload!/1 returns the local actor with it's organized events",
|
||||
test "get_local_actor_by_name_with_preload!/1 returns the local actor with its organized events",
|
||||
%{
|
||||
actor: actor
|
||||
} do
|
||||
@@ -130,7 +130,7 @@ defmodule Mobilizon.ActorsTest do
|
||||
assert event_found_id == event.id
|
||||
end
|
||||
|
||||
test "get_actor_by_name_with_preload!/1 returns the local actor with it's organized events",
|
||||
test "get_actor_by_name_with_preload!/1 returns the local actor with its organized events",
|
||||
%{
|
||||
actor: actor
|
||||
} do
|
||||
@@ -147,7 +147,7 @@ defmodule Mobilizon.ActorsTest do
|
||||
assert event_found_id == event.id
|
||||
end
|
||||
|
||||
test "get_actor_by_name_with_preload!/1 returns the remote actor with it's organized events" do
|
||||
test "get_actor_by_name_with_preload!/1 returns the remote actor with its organized events" do
|
||||
use_cassette "actors/remote_actor_mastodon_tcit" do
|
||||
with {:ok, %Actor{} = actor} <- ActivityPub.get_or_fetch_by_url(@remote_account_url) do
|
||||
assert Actors.get_actor_by_name_with_preload(
|
||||
@@ -230,7 +230,7 @@ defmodule Mobilizon.ActorsTest do
|
||||
refute actor.suspended
|
||||
end
|
||||
|
||||
test "update_actor/2 with valid data updates the actor and it's media files", %{
|
||||
test "update_actor/2 with valid data updates the actor and its media files", %{
|
||||
actor: %Actor{avatar: %{url: avatar_url}, banner: %{url: banner_url}} = actor
|
||||
} do
|
||||
%URI{path: "/media/" <> avatar_path} = URI.parse(avatar_url)
|
||||
|
||||
@@ -42,7 +42,7 @@ defmodule Mobilizon.Service.ActivityPub.ActivityPubTest do
|
||||
end
|
||||
end
|
||||
|
||||
describe "fetching actor from it's url" do
|
||||
describe "fetching actor from its url" do
|
||||
test "returns an actor from nickname" do
|
||||
use_cassette "activity_pub/fetch_tcit@framapiaf.org" do
|
||||
assert {:ok, %Actor{preferred_username: "tcit", domain: "framapiaf.org"} = actor} =
|
||||
|
||||
@@ -74,7 +74,7 @@ defmodule Mobilizon.UsersTest do
|
||||
Users.authenticate(%{user: user, password: "bad password"})
|
||||
end
|
||||
|
||||
test "get_user_by_email/1 finds an user by it's email" do
|
||||
test "get_user_by_email/1 finds an user by its email" do
|
||||
{:ok, %User{email: email} = user} = Users.register(%{email: @email, password: @password})
|
||||
|
||||
assert email == @email
|
||||
@@ -83,7 +83,7 @@ defmodule Mobilizon.UsersTest do
|
||||
assert {:error, :user_not_found} = Users.get_user_by_email("no email")
|
||||
end
|
||||
|
||||
test "get_user_by_email/1 finds an activated user by it's email" do
|
||||
test "get_user_by_email/1 finds an activated user by its email" do
|
||||
{:ok, %User{} = user} = Users.register(%{email: @email, password: @password})
|
||||
|
||||
{:ok, %User{id: id}} = Users.get_user_by_email(@email, false)
|
||||
|
||||
Reference in New Issue
Block a user