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
|
@ -23,7 +23,7 @@ RSpec.describe 'Filters' do
|
|||
get '/api/v2/filters', headers: headers
|
||||
end
|
||||
|
||||
let!(:filters) { Fabricate.times(3, :custom_filter, account: user.account) }
|
||||
let!(:filters) { Fabricate.times(2, :custom_filter, account: user.account) }
|
||||
|
||||
it_behaves_like 'forbidden for wrong scope', 'write write:filters'
|
||||
it_behaves_like 'unauthorized for invalid token'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue