Fix specs.
This commit is contained in:
parent
ea57e42b25
commit
d1c10ad2fb
|
@ -131,7 +131,8 @@ test "an activity" do
|
||||||
"external_url" => "some url",
|
"external_url" => "some url",
|
||||||
"tags" => ["content", "mentioning", "nsfw"],
|
"tags" => ["content", "mentioning", "nsfw"],
|
||||||
"activity_type" => "post",
|
"activity_type" => "post",
|
||||||
"possibly_sensitive" => true
|
"possibly_sensitive" => true,
|
||||||
|
"uri" => activity.data["object"]["id"]
|
||||||
}
|
}
|
||||||
|
|
||||||
assert ActivityRepresenter.to_map(activity, %{user: user, for: follower, mentioned: [mentioned_user]}) == expected_status
|
assert ActivityRepresenter.to_map(activity, %{user: user, for: follower, mentioned: [mentioned_user]}) == expected_status
|
||||||
|
@ -159,6 +160,6 @@ test "a delete activity" do
|
||||||
|
|
||||||
assert map["is_post_verb"] == false
|
assert map["is_post_verb"] == false
|
||||||
assert map["activity_type"] == "delete"
|
assert map["activity_type"] == "delete"
|
||||||
assert map["id"] == object.data["id"]
|
assert map["uri"] == object.data["id"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue