0
0
Fork 0

Spec coverage and refactor for pubsub/delivery worker (#3021)

* Framework for delivery worker spec

* Refactor of pubsub delivery worker
This commit is contained in:
Matt Jankowski 2017-05-12 14:35:36 -04:00 committed by Eugen Rochko
parent a1fc2cfa09
commit 0d70fe2659
5 changed files with 151 additions and 29 deletions

View file

@ -8,7 +8,7 @@ describe Pubsubhubbub::ConfirmationWorker do
subject { described_class.new }
let!(:alice) { Fabricate(:account, username: 'alice') }
let!(:subscription) { Fabricate(:subscription, account_id: alice.id, callback_url: 'http://example.com/api', confirmed: false, expires_at: 3.days.from_now, secret: nil) }
let!(:subscription) { Fabricate(:subscription, account: alice, callback_url: 'http://example.com/api', confirmed: false, expires_at: 3.days.from_now, secret: nil) }
describe 'perform' do
describe 'with subscribe mode' do