summaryrefslogtreecommitdiff
path: root/test/daemons/scheduled_activity_daemon_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-02-11 00:04:06 +0000
committerrinpatch <rinpatch@sdf.org>2020-02-11 00:04:06 +0000
commit94e5ca11054567e0edc15ef3a350f02c386d3ead (patch)
tree36f42f1532c76e44d3959e368a046bff474aea3b /test/daemons/scheduled_activity_daemon_test.exs
parenta7287e2e3a9291469c489a5a1df26480fdeab3a3 (diff)
parent6813c0302c2b665d337d5f5831d2df6312b6b277 (diff)
downloadpleroma-94e5ca11054567e0edc15ef3a350f02c386d3ead.tar.gz
pleroma-94e5ca11054567e0edc15ef3a350f02c386d3ead.zip
Merge branch 'issue/1383' into 'develop'
[#1383] Switch periodic jobs from quantum to oban See merge request pleroma/pleroma!2015
Diffstat (limited to 'test/daemons/scheduled_activity_daemon_test.exs')
-rw-r--r--test/daemons/scheduled_activity_daemon_test.exs19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/daemons/scheduled_activity_daemon_test.exs b/test/daemons/scheduled_activity_daemon_test.exs
deleted file mode 100644
index c8e464491..000000000
--- a/test/daemons/scheduled_activity_daemon_test.exs
+++ /dev/null
@@ -1,19 +0,0 @@
-# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
-# SPDX-License-Identifier: AGPL-3.0-only
-
-defmodule Pleroma.ScheduledActivityDaemonTest do
- use Pleroma.DataCase
- alias Pleroma.ScheduledActivity
- import Pleroma.Factory
-
- test "creates a status from the scheduled activity" do
- user = insert(:user)
- scheduled_activity = insert(:scheduled_activity, user: user, params: %{status: "hi"})
- Pleroma.Daemons.ScheduledActivityDaemon.perform(:execute, scheduled_activity.id)
-
- refute Repo.get(ScheduledActivity, scheduled_activity.id)
- activity = Repo.all(Pleroma.Activity) |> Enum.find(&(&1.actor == user.ap_id))
- assert Pleroma.Object.normalize(activity).data["content"] == "hi"
- end
-end