diff options
| author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-12-10 00:16:43 +0700 |
|---|---|---|
| committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-12-10 00:16:43 +0700 |
| commit | c098dec47344303bc00456bfbfc0d769abd8f199 (patch) | |
| tree | 709963edcda2d85a5d77ebce4a200ae04fff89cd /test/user/notification_setting_test.exs | |
| parent | 78299ab18205b0bbaf521640e188a862ca27aa61 (diff) | |
| parent | 0d2c13a119302d0d217a7cb61c28a01c620b1b61 (diff) | |
| download | pleroma-c098dec47344303bc00456bfbfc0d769abd8f199.tar.gz pleroma-c098dec47344303bc00456bfbfc0d769abd8f199.zip | |
Merge branch 'develop' into feature/custom-runtime-modules
Diffstat (limited to 'test/user/notification_setting_test.exs')
| -rw-r--r-- | test/user/notification_setting_test.exs | 21 |
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 |
