diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-08-31 14:25:43 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-08-31 14:25:43 +0300 |
commit | e890ea7e821d61fca75084d46f70ed125acf1fc8 (patch) | |
tree | 7994c0be9f90b39a9ed46bbfd9f04fce70a14671 /test/activity_test.exs | |
parent | cd78e63a2528ab813088d5e44a026f6bb05b344b (diff) | |
parent | 6d33c89c4d27a1b52e69e1c14b408726410a6326 (diff) | |
download | pleroma-e890ea7e821d61fca75084d46f70ed125acf1fc8.tar.gz pleroma-e890ea7e821d61fca75084d46f70ed125acf1fc8.zip |
[#1149] Added Oban job for "activity_expiration". Merged remote-tracking branch 'remotes/upstream/develop' into 1149-oban-job-queue
# Conflicts:
# config/config.exs
Diffstat (limited to 'test/activity_test.exs')
-rw-r--r-- | test/activity_test.exs | 9 |
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 |