about summary refs log tree commit diff
path: root/spec/models/invite_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/invite_spec.rb')
-rw-r--r--spec/models/invite_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/invite_spec.rb b/spec/models/invite_spec.rb
index 30abfb86b..b0596c561 100644
--- a/spec/models/invite_spec.rb
+++ b/spec/models/invite_spec.rb
@@ -29,7 +29,7 @@ RSpec.describe Invite, type: :model do
 
     it 'returns false when invite creator has been disabled' do
       invite = Fabricate(:invite, max_uses: nil, expires_at: nil)
-      SuspendAccountService.new.call(invite.user.account)
+      invite.user.account.suspend!
       expect(invite.valid_for_use?).to be false
     end
   end