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

This commit is contained in:
Matt Jankowski authored and GitHub committed 2023-12-21 09:28:41 +00:00
1 parent c753b1ad35
commit f32d672d2f
6 files changed
+36 -17

No files matched your search

@@ -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