summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/status_view_test.exs
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-10-31 14:53:14 +0100
committerRoger Braun <roger@rogerbraun.net>2017-10-31 14:53:14 +0100
commit997c01be53ecb5ee65dccb84c5f21df334bea812 (patch)
tree8ef4424283031bfb6184926eb2b89acc7cc3d706 /test/web/mastodon_api/status_view_test.exs
parentf23edd2d6b67ee30ccd16b7a27d9e07a9f928574 (diff)
parent968a546d4ac7d6b50af84aea71b3b37af8f2f669 (diff)
downloadpleroma-997c01be53ecb5ee65dccb84c5f21df334bea812.tar.gz
pleroma-997c01be53ecb5ee65dccb84c5f21df334bea812.zip
Merge branch 'feature/mastodon-api-fixes' into develop
Diffstat (limited to 'test/web/mastodon_api/status_view_test.exs')
-rw-r--r--test/web/mastodon_api/status_view_test.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index dc5cdfe9a..5aeee98c4 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -17,9 +17,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|> String.replace(~r/\.\d+Z/, ".000Z")
expected = %{
- id: note.id,
+ id: to_string(note.id),
uri: note.data["object"]["id"],
- url: note.data["object"]["external_id"],
+ url: note.data["object"]["id"],
account: AccountView.render("account.json", %{user: user}),
in_reply_to_id: nil,
in_reply_to_account_id: nil,
@@ -101,7 +101,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
represented = StatusView.render("status.json", %{for: user, activity: reblog})
- assert represented[:id] == reblog.id
- assert represented[:reblog][:id] == activity.id
+ assert represented[:id] == to_string(reblog.id)
+ assert represented[:reblog][:id] == to_string(activity.id)
end
end