summaryrefslogtreecommitdiff
path: root/test/repo_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-09-15 15:32:49 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-09-15 15:32:49 +0300
commitf879d07fa1a046b5aa33de8e445b1ca803fa1d04 (patch)
tree9db929e9744f54040bc3892082bd67ee27a6de3b /test/repo_test.exs
parent3e53ab4e98e6294f593f2185998f555ccd6fee73 (diff)
downloadpleroma-f879d07fa1a046b5aa33de8e445b1ca803fa1d04.tar.gz
pleroma-f879d07fa1a046b5aa33de8e445b1ca803fa1d04.zip
fixed tests
Diffstat (limited to 'test/repo_test.exs')
-rw-r--r--test/repo_test.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/repo_test.exs b/test/repo_test.exs
index 92e827c95..72c0b5071 100644
--- a/test/repo_test.exs
+++ b/test/repo_test.exs
@@ -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