fixed tests

This commit is contained in:
Maksim Pechnikov 2020-09-15 15:32:49 +03:00
commit f879d07fa1
5 changed files with 11 additions and 6 deletions

View file

@ -37,7 +37,9 @@ defmodule Pleroma.RepoTest do
test "get one-to-many assoc from repo" do
user = insert(:user)
notification = refresh_record(insert(:notification, user: user))
notification =
refresh_record(insert(:notification, user: user, activity: insert(:note_activity)))
assert Repo.get_assoc(user, :notifications) == {:ok, [notification]}
end