about summary refs log tree commit diff
path: root/spec/workers/pubsubhubbub/distribution_worker_spec.rb
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-12 14:35:36 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-12 20:35:36 +0200
commit0d70fe26590433c06948a2827ea582b53fdfd6a1 (patch)
tree70bb50ecaf17ad3f783ca962610462a802bd8f35 /spec/workers/pubsubhubbub/distribution_worker_spec.rb
parenta1fc2cfa0990845db70294277e84d4347fe50642 (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/distribution_worker_spec.rb')
-rw-r--r--spec/workers/pubsubhubbub/distribution_worker_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/pubsubhubbub/distribution_worker_spec.rb b/spec/workers/pubsubhubbub/distribution_worker_spec.rb
index 9565a2f7c..512adb04c 100644
--- a/spec/workers/pubsubhubbub/distribution_worker_spec.rb
+++ b/spec/workers/pubsubhubbub/distribution_worker_spec.rb
@@ -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)