fixed tests
This commit is contained in:
parent
3e53ab4e98
commit
f879d07fa1
5 changed files with 11 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue