Move Scrobble views to ScrobbleView

This commit is contained in:
Egor Kislitsyn 2020-05-19 16:11:59 +04:00
commit 6609714d66
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
5 changed files with 59 additions and 37 deletions

View file

@ -620,14 +620,4 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
assert status.visibility == "list"
end
test "successfully renders a Listen activity (pleroma extension)" do
listen_activity = insert(:listen)
status = StatusView.render("listen.json", activity: listen_activity)
assert status.length == listen_activity.data["object"]["length"]
assert status.title == listen_activity.data["object"]["title"]
assert_schema(status, "Status", Pleroma.Web.ApiSpec.spec())
end
end