]> cat aescling's git repositories - mastodon.git/commitdiff
Fix failing keybase-related test
authorThibaut Girka <thib@sitedethib.com>
Sat, 30 Mar 2019 12:32:42 +0000 (13:32 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sat, 30 Mar 2019 17:19:40 +0000 (18:19 +0100)
spec/services/activitypub/process_account_service_spec.rb

index ab8fb5cc3b425bddf4a50db5f4fe34a397f03fb2..5141e3f16568853048dc16dff00ed4f3daf75d6a 100644 (file)
@@ -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)