mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Reduce .times usage in request and controller specs (#27949)
This commit is contained in:
@@ -45,7 +45,7 @@ describe Admin::InvitesController do
|
||||
|
||||
describe 'POST #deactivate_all' do
|
||||
it 'expires all invites, then redirects to admin_invites_path' do
|
||||
invites = Fabricate.times(2, :invite, expires_at: nil)
|
||||
invites = Fabricate.times(1, :invite, expires_at: nil)
|
||||
|
||||
post :deactivate_all
|
||||
|
||||
|
||||
Reference in New Issue
Block a user