aboutsummaryrefslogtreecommitdiff
path: root/test/activity_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/activity_test.exs')
-rw-r--r--test/activity_test.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/activity_test.exs b/test/activity_test.exs
index 658c47837..4280327a1 100644
--- a/test/activity_test.exs
+++ b/test/activity_test.exs
@@ -166,4 +166,13 @@ defmodule Pleroma.ActivityTest do
Pleroma.Config.put([:instance, :limit_to_local_content], :unauthenticated)
end
end
+
+ test "add an activity with an expiration" do
+ activity = insert(:note_activity)
+ insert(:expiration_in_the_future, %{activity_id: activity.id})
+
+ Pleroma.ActivityExpiration
+ |> where([a], a.activity_id == ^activity.id)
+ |> Repo.one!()
+ end
end