0
0
Fork 0

Clean up of RSpec/LetSetup within spec/controllers (#28446)

This commit is contained in:
Matt Jankowski 2023-12-21 04:28:41 -05:00 committed by GitHub
parent c753b1ad35
commit f32d672d2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 36 additions and 17 deletions

View file

@ -48,6 +48,13 @@ describe FollowerAccountsController do
it 'returns followers' do
expect(response).to have_http_status(200)
expect(body_as_json)
.to include(
orderedItems: contain_exactly(
include(follow_from_bob.account.username),
include(follow_from_chris.account.username)
)
)
expect(body['totalItems']).to eq 2
expect(body['partOf']).to be_present
end