aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-05-09 16:39:28 +0200
committerlain <lain@soykaf.club>2019-05-09 16:39:28 +0200
commita33bec7d58091059d578f6b7537513de11eb0679 (patch)
tree9671d3e475e28ea278a8fb4105a6f44b13596a60 /test
parente6d7f8d223b2604df38f8efa8baf09e2c607c487 (diff)
downloadpleroma-a33bec7d58091059d578f6b7537513de11eb0679.tar.gz
Conversations: Import order, import as read.
Diffstat (limited to 'test')
-rw-r--r--test/conversation_test.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/conversation_test.exs b/test/conversation_test.exs
index 59368b0e7..cdec18f0f 100644
--- a/test/conversation_test.exs
+++ b/test/conversation_test.exs
@@ -24,7 +24,9 @@ defmodule Pleroma.ConversationTest do
Conversation.bump_for_all_activities()
assert Repo.one(Conversation)
- assert length(Repo.all(Conversation.Participation)) == 2
+ [participation, _p2] = Repo.all(Conversation.Participation)
+
+ assert participation.read
end
test "it creates a conversation for given ap_id" do