Spec coverage and refactor for pubsub/delivery worker (#3021)
* Framework for delivery worker spec * Refactor of pubsub delivery worker
This commit is contained in:
parent
a1fc2cfa09
commit
0d70fe2659
5 changed files with 151 additions and 29 deletions
|
@ -5,8 +5,8 @@ describe Pubsubhubbub::DistributionWorker do
|
|||
|
||||
let!(:alice) { Fabricate(:account, username: 'alice') }
|
||||
let!(:bob) { Fabricate(:account, username: 'bob', domain: 'example2.com') }
|
||||
let!(:anonymous_subscription) { Fabricate(:subscription, account_id: alice.id, callback_url: 'http://example1.com', confirmed: true, lease_seconds: 3600) }
|
||||
let!(:subscription_with_follower) { Fabricate(:subscription, account_id: alice.id, callback_url: 'http://example2.com', confirmed: true, lease_seconds: 3600) }
|
||||
let!(:anonymous_subscription) { Fabricate(:subscription, account: alice, callback_url: 'http://example1.com', confirmed: true, lease_seconds: 3600) }
|
||||
let!(:subscription_with_follower) { Fabricate(:subscription, account: alice, callback_url: 'http://example2.com', confirmed: true, lease_seconds: 3600) }
|
||||
|
||||
before do
|
||||
bob.follow!(alice)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue