testsuite: twitter api: add summary where necessary

This commit is contained in:
William Pitcock 2018-06-24 06:23:19 +00:00
parent f03e57f764
commit 4fb64c1d86
2 changed files with 4 additions and 2 deletions

View file

@ -155,7 +155,8 @@ test "an activity" do
"activity_type" => "post", "activity_type" => "post",
"possibly_sensitive" => true, "possibly_sensitive" => true,
"uri" => activity.data["object"]["id"], "uri" => activity.data["object"]["id"],
"visibility" => "direct" "visibility" => "direct",
"summary" => "2hu"
} }
assert ActivityRepresenter.to_map(activity, %{ assert ActivityRepresenter.to_map(activity, %{

View file

@ -48,7 +48,8 @@ test "a create activity with a note" do
"text" => "Hey @shp!", "text" => "Hey @shp!",
"uri" => activity.data["object"]["id"], "uri" => activity.data["object"]["id"],
"user" => UserView.render("show.json", %{user: user}), "user" => UserView.render("show.json", %{user: user}),
"visibility" => "direct" "visibility" => "direct",
"summary" => nil
} }
assert result == expected assert result == expected