diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-10-31 14:51:41 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-10-31 14:51:41 +0100 |
commit | 968a546d4ac7d6b50af84aea71b3b37af8f2f669 (patch) | |
tree | 8ef4424283031bfb6184926eb2b89acc7cc3d706 /test | |
parent | f6372b245a2d65cf1c225adfe7bf822094cb4e1e (diff) | |
download | pleroma-968a546d4ac7d6b50af84aea71b3b37af8f2f669.tar.gz pleroma-968a546d4ac7d6b50af84aea71b3b37af8f2f669.zip |
MastoAPI: Return id as string instead of integer.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/status_view_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index caa2c9d83..5aeee98c4 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -17,7 +17,7 @@ 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"]["id"], account: AccountView.render("account.json", %{user: user}), @@ -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 |