Reduce .times
usage in request and controller specs (#27949)
This commit is contained in:
parent
f7cb64a184
commit
32e19e3af6
12 changed files with 24 additions and 24 deletions
|
@ -13,7 +13,7 @@ RSpec.describe 'Follow requests' do
|
|||
get '/api/v1/follow_requests', headers: headers, params: params
|
||||
end
|
||||
|
||||
let(:accounts) { Fabricate.times(5, :account) }
|
||||
let(:accounts) { Fabricate.times(2, :account) }
|
||||
let(:params) { {} }
|
||||
|
||||
let(:expected_response) do
|
||||
|
@ -40,7 +40,7 @@ RSpec.describe 'Follow requests' do
|
|||
end
|
||||
|
||||
context 'with limit param' do
|
||||
let(:params) { { limit: 2 } }
|
||||
let(:params) { { limit: 1 } }
|
||||
|
||||
it 'returns only the requested number of follow requests' do
|
||||
subject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue