about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-03-30 13:32:42 +0100
committerThibaut Girka <thib@sitedethib.com>2019-03-30 18:19:40 +0100
commitb72950fbd3536260df0b9c22179a6024d4d0c189 (patch)
tree324003d03c66caead9842a6052bc28caf7f654c2 /spec
parentb9b472d519acc83f231b87c8e9287aecf9720f62 (diff)
Fix failing keybase-related test
Diffstat (limited to 'spec')
-rw-r--r--spec/services/activitypub/process_account_service_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/activitypub/process_account_service_spec.rb b/spec/services/activitypub/process_account_service_spec.rb
index ab8fb5cc3..5141e3f16 100644
--- a/spec/services/activitypub/process_account_service_spec.rb
+++ b/spec/services/activitypub/process_account_service_spec.rb
@@ -42,6 +42,8 @@ RSpec.describe ActivityPub::ProcessAccountService, type: :service do
     end
 
     it 'parses out of attachment' do
+      allow(ProofProvider::Keybase::Worker).to receive(:perform_async)
+
       account = subject.call('alice', 'example.com', payload)
 
       expect(account.identity_proofs.count).to eq 1
@@ -54,6 +56,8 @@ RSpec.describe ActivityPub::ProcessAccountService, type: :service do
     end
 
     it 'removes no longer present proofs' do
+      allow(ProofProvider::Keybase::Worker).to receive(:perform_async)
+
       account   = Fabricate(:account, username: 'alice', domain: 'example.com')
       old_proof = Fabricate(:account_identity_proof, account: account, provider: 'keybase', provider_username: 'Bob', token: 'b' * 66)