diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-12-11 15:02:53 -0600 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-12-11 15:02:53 -0600 |
commit | 9ef912aecfbeef670db0614ec2014321c37f3b7a (patch) | |
tree | 69eb0b5e11ca321e1ba8ca794171bf0cb425d16d /test/user/notification_setting_test.exs | |
parent | e21afdb7c76c9773aeb51e37ff3bc2874e7a74f7 (diff) | |
parent | 92b4a1aa1bc750bb077ae45c422967f9712e247d (diff) | |
download | pleroma-9ef912aecfbeef670db0614ec2014321c37f3b7a.tar.gz pleroma-9ef912aecfbeef670db0614ec2014321c37f3b7a.zip |
Merge branch 'develop' into issue/1411
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 |