summaryrefslogtreecommitdiff
path: root/test/user/notification_setting_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-12-17 09:24:08 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-12-17 09:24:08 +0300
commita879c396bb3a07929d4821ef2c29610808962c6d (patch)
treec0e64cdda3a4ab59d2fbdd25db65d8d795dba6c6 /test/user/notification_setting_test.exs
parent22fc271e23a5dd1570ea7429b563f6edc42613c4 (diff)
parent804b961d3c8e0034c7b6057a164126e5d01a084b (diff)
downloadpleroma-a879c396bb3a07929d4821ef2c29610808962c6d.tar.gz
pleroma-a879c396bb3a07929d4821ef2c29610808962c6d.zip
Merge branch 'develop' into feature/tag_feed
Diffstat (limited to 'test/user/notification_setting_test.exs')
-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