Clean up of RSpec/LetSetup
within spec/controllers
(#28446)
This commit is contained in:
parent
c753b1ad35
commit
f32d672d2f
6 changed files with 36 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue