move to 2.5.5
[anni] / test / pleroma / web / pleroma_api / views / backup_view_test.exs
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
5 defmodule Pleroma.Web.PleromaAPI.BackupViewTest do
6   use Pleroma.DataCase, async: true
7   alias Pleroma.User.Backup
8   alias Pleroma.Web.PleromaAPI.BackupView
9   import Pleroma.Factory
10
11   test "it renders the ID" do
12     user = insert(:user)
13     backup = Backup.new(user)
14
15     result = BackupView.render("show.json", backup: backup)
16     assert result.id == backup.id
17   end
18 end