mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 12:34:58 +01:00
Fix intmermittent failure in api/v1/accounts/statuses
controller spec (#28931)
This commit is contained in:
parent
805dba7f8d
commit
9cc1817bb4
@ -39,11 +39,14 @@ describe Api::V1::Accounts::StatusesController do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'returns posts along with self replies', :aggregate_failures do
|
it 'returns posts along with self replies', :aggregate_failures do
|
||||||
json = body_as_json
|
expect(response)
|
||||||
post_ids = json.map { |item| item[:id].to_i }.sort
|
.to have_http_status(200)
|
||||||
|
expect(body_as_json)
|
||||||
expect(response).to have_http_status(200)
|
.to have_attributes(size: 2)
|
||||||
expect(post_ids).to eq [status.id, status_self_reply.id]
|
.and contain_exactly(
|
||||||
|
include(id: status.id.to_s),
|
||||||
|
include(id: status_self_reply.id.to_s)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user