logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

notification_setting_test.exs (597B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.User.NotificationSettingTest do
  5. use Pleroma.DataCase, async: true
  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