Commit b72950fb authored by Thibaut Girka's avatar Thibaut Girka

Fix failing keybase-related test

parent b9b472d5
...@@ -42,6 +42,8 @@ RSpec.describe ActivityPub::ProcessAccountService, type: :service do ...@@ -42,6 +42,8 @@ RSpec.describe ActivityPub::ProcessAccountService, type: :service do
end end
it 'parses out of attachment' do it 'parses out of attachment' do
allow(ProofProvider::Keybase::Worker).to receive(:perform_async)
account = subject.call('alice', 'example.com', payload) account = subject.call('alice', 'example.com', payload)
expect(account.identity_proofs.count).to eq 1 expect(account.identity_proofs.count).to eq 1
...@@ -54,6 +56,8 @@ RSpec.describe ActivityPub::ProcessAccountService, type: :service do ...@@ -54,6 +56,8 @@ RSpec.describe ActivityPub::ProcessAccountService, type: :service do
end end
it 'removes no longer present proofs' do it 'removes no longer present proofs' do
allow(ProofProvider::Keybase::Worker).to receive(:perform_async)
account = Fabricate(:account, username: 'alice', domain: 'example.com') account = Fabricate(:account, username: 'alice', domain: 'example.com')
old_proof = Fabricate(:account_identity_proof, account: account, provider: 'keybase', provider_username: 'Bob', token: 'b' * 66) old_proof = Fabricate(:account_identity_proof, account: account, provider: 'keybase', provider_username: 'Bob', token: 'b' * 66)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment