Reduce .times usage in request and controller specs (#27949)
This commit is contained in:
1 parent
f7cb64a184
commit
32e19e3af6
12 files changed
+24
-24
No files matched your search
@@ -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