aboutsummaryrefslogtreecommitdiff
path: root/test/user
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-12-09 19:41:43 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-12-09 19:41:43 +0300
commit2b821036c4bd84cee51c9fcace5a4b3764c3bba1 (patch)
tree811d75ef4b0442f3f2102d873fab4e10c777e7f1 /test/user
parent5876a9cb79e53f932d63e457610852031669a222 (diff)
parent0d2c13a119302d0d217a7cb61c28a01c620b1b61 (diff)
downloadpleroma-2b821036c4bd84cee51c9fcace5a4b3764c3bba1.tar.gz
Merge branch 'develop' into issue/1383
Diffstat (limited to 'test/user')
-rw-r--r--test/user/notification_setting_test.exs21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/user/notification_setting_test.exs b/test/user/notification_setting_test.exs
new file mode 100644
index 000000000..4744d7b4a
--- /dev/null
+++ b/test/user/notification_setting_test.exs
@@ -0,0 +1,21 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.User.NotificationSettingTest do
+ use Pleroma.DataCase
+
+ alias Pleroma.User.NotificationSetting
+
+ describe "changeset/2" do
+ test "sets valid privacy option" do
+ changeset =
+ NotificationSetting.changeset(
+ %NotificationSetting{},
+ %{"privacy_option" => true}
+ )
+
+ assert %Ecto.Changeset{valid?: true} = changeset
+ end
+ end
+end