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
|
@ -156,7 +156,7 @@ describe '/api/v1/statuses' do
|
|||
context 'when exceeding rate limit' do
|
||||
before do
|
||||
rate_limiter = RateLimiter.new(user.account, family: :statuses)
|
||||
300.times { rate_limiter.record! }
|
||||
RateLimiter::FAMILIES[:statuses][:limit].times { rate_limiter.record! }
|
||||
end
|
||||
|
||||
it 'returns rate limit headers', :aggregate_failures do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue