logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

notification_setting_test.exs (584B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.User.NotificationSettingTest do
  5. use Pleroma.DataCase
  6. alias Pleroma.User.NotificationSetting
  7. describe "changeset/2" do
  8. test "sets option to hide notification contents" do
  9. changeset =
  10. NotificationSetting.changeset(
  11. %NotificationSetting{},
  12. %{"hide_notification_contents" => true}
  13. )
  14. assert %Ecto.Changeset{valid?: true} = changeset
  15. end
  16. end
  17. end