Commit 3a0b5c41 authored by Alexander Strizhakov's avatar Alexander Strizhakov

tests fixes

parent 24f50695
Pipeline #25541 passed with stages
in 13 minutes and 24 seconds
......@@ -335,7 +335,7 @@ test "it creates notifications when someone likes user's status with a filtered
insert(:filter, user: user, phrase: "tesla", hide: true)
{:ok, activity_one} = CommonAPI.post(user, %{"status" => "wow tesla"})
{:ok, activity_two, _} = CommonAPI.favorite(activity_one.id, other_user)
{:ok, activity_two} = CommonAPI.favorite(other_user, activity_one.id)
{:ok, [notification]} = Notification.create_notifications(activity_two)
......@@ -1130,7 +1130,7 @@ test "it returns notifications about favorites with filtered word", %{user: user
another_user = insert(:user)
{:ok, activity} = CommonAPI.post(user, %{"status" => "Give me my cofe!"})
{:ok, _, _} = CommonAPI.favorite(activity.id, another_user)
{:ok, _} = CommonAPI.favorite(another_user, activity.id)
assert length(Notification.for_user(user)) == 1
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment