summaryrefslogtreecommitdiff
path: root/test/report_note_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-08-07 09:38:05 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-08-07 09:38:05 +0300
commit1298a2ea2c63f14cc080eb549377c6a1274b1628 (patch)
treefe50b19542682173af1314766571731f69e904f5 /test/report_note_test.exs
parentb8021016ebef23903c59e5140d4efb456a84a347 (diff)
parentb9ebb55d2aabdf4c99b05efab9d4ad31b25f888d (diff)
downloadpleroma-1298a2ea2c63f14cc080eb549377c6a1274b1628.tar.gz
pleroma-1298a2ea2c63f14cc080eb549377c6a1274b1628.zip
Merge remote-tracking branch 'remotes/origin/develop' into 2168-media-preview-proxy
# Conflicts: # mix.lock
Diffstat (limited to 'test/report_note_test.exs')
-rw-r--r--test/report_note_test.exs16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/report_note_test.exs b/test/report_note_test.exs
new file mode 100644
index 000000000..25c1d6a61
--- /dev/null
+++ b/test/report_note_test.exs
@@ -0,0 +1,16 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.ReportNoteTest do
+ alias Pleroma.ReportNote
+ use Pleroma.DataCase
+ import Pleroma.Factory
+
+ test "create/3" do
+ user = insert(:user)
+ report = insert(:report_activity)
+ assert {:ok, note} = ReportNote.create(user.id, report.id, "naughty boy")
+ assert note.content == "naughty boy"
+ end
+end