(Hopefully) improve grammar

[CI skip]
This commit is contained in:
Damien
2019-10-15 21:18:03 +02:00
parent 5f934e3449
commit b98a86184b
19 changed files with 33 additions and 33 deletions

View File

@@ -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)

View File

@@ -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} =

View File

@@ -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)

View File

@@ -106,7 +106,7 @@ defmodule MobilizonWeb.Resolvers.GroupResolverTest do
group.preferred_username
end
test "find_group/3 returns a group by it's username", context do
test "find_group/3 returns a group by its username", context do
group = insert(:group)
query = """

View File

@@ -141,7 +141,7 @@ defmodule MobilizonWeb.Resolvers.ParticipantResolverTest do
|> post("/api", AbsintheHelpers.mutation_skeleton(mutation))
assert hd(json_response(res, 200)["errors"])["message"] ==
"The event has already reached it's maximum capacity"
"The event has already reached its maximum capacity"
end
test "actor_join_event/3 should check the actor is owned by the user", %{

View File

@@ -7,7 +7,7 @@ defmodule MobilizonWeb.Resolvers.PersonResolverTest do
@non_existent_username "nonexistent"
describe "Person Resolver" do
test "get_person/3 returns a person by it's username", context do
test "get_person/3 returns a person by its username", context do
user = insert(:user)
actor = insert(:actor, user: user)
@@ -44,7 +44,7 @@ defmodule MobilizonWeb.Resolvers.PersonResolverTest do
"Person with ID 6895567 not found"
end
test "find_person/3 returns a person by it's username", context do
test "find_person/3 returns a person by its username", context do
user = insert(:user)
actor = insert(:actor, user: user)

View File

@@ -18,7 +18,7 @@ defmodule MobilizonWeb.Resolvers.UserResolverTest do
@valid_single_actor_params %{preferred_username: "test2", keys: "yolo"}
describe "Resolver: Get an user" do
test "find_user/3 returns an user by it's id", context do
test "find_user/3 returns an user by its id", context do
user = insert(:user)
query = """