diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-12 14:35:36 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-12 20:35:36 +0200 |
commit | 0d70fe26590433c06948a2827ea582b53fdfd6a1 (patch) | |
tree | 70bb50ecaf17ad3f783ca962610462a802bd8f35 /spec/workers/pubsubhubbub/confirmation_worker_spec.rb | |
parent | a1fc2cfa0990845db70294277e84d4347fe50642 (diff) |
Spec coverage and refactor for pubsub/delivery worker (#3021)
* Framework for delivery worker spec * Refactor of pubsub delivery worker
Diffstat (limited to 'spec/workers/pubsubhubbub/confirmation_worker_spec.rb')
-rw-r--r-- | spec/workers/pubsubhubbub/confirmation_worker_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/pubsubhubbub/confirmation_worker_spec.rb b/spec/workers/pubsubhubbub/confirmation_worker_spec.rb index 3951c1a50..1199d5801 100644 --- a/spec/workers/pubsubhubbub/confirmation_worker_spec.rb +++ b/spec/workers/pubsubhubbub/confirmation_worker_spec.rb @@ -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 |