diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-03-22 16:51:20 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-03-22 16:51:20 +0100 |
commit | 37e443ce6c4d263f7febd7e0723be9a3a2c9ed1d (patch) | |
tree | 1a2a466fb482e5bc53672837ceee3c08cb28df4d /test/web/twitter_api/representers/activity_representer_test.exs | |
parent | 569d9bac178f22e763afc9db5000415bebf70304 (diff) | |
download | pleroma-37e443ce6c4d263f7febd7e0723be9a3a2c9ed1d.tar.gz pleroma-37e443ce6c4d263f7febd7e0723be9a3a2c9ed1d.zip |
Add friends status fetching.
Diffstat (limited to 'test/web/twitter_api/representers/activity_representer_test.exs')
-rw-r--r-- | test/web/twitter_api/representers/activity_representer_test.exs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs index b34d3b787..ecfd5a73f 100644 --- a/test/web/twitter_api/representers/activity_representer_test.exs +++ b/test/web/twitter_api/representers/activity_representer_test.exs @@ -7,6 +7,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do test "an activity" do {:ok, user} = UserBuilder.insert content = "Some content" + date = DateTime.utc_now() |> DateTime.to_iso8601 + activity = %Activity{ id: 1, data: %{ @@ -17,9 +19,11 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do ], "actor" => User.ap_id(user), "object" => %{ + "published" => date, "type" => "Note", "content" => content - } + }, + "published" => date } } @@ -31,7 +35,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do "attentions" => [], "statusnet_html" => content, "text" => content, - "is_post_verb" => true + "is_post_verb" => true, + "created_at" => date } assert ActivityRepresenter.to_map(activity, %{user: user}) == expected_status |