From caf5d562de73a3df7090191cf3292bcc39598b54 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Wed, 25 May 2016 03:19:59 +0200 Subject: [PATCH] mock new send worker in tests --- spec/spec_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 201f98826..261350a60 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -107,8 +107,8 @@ RSpec.configure do |config| stub_request(:post, "https://pubsubhubbub.appspot.com/") disable_typhoeus $process_queue = false - allow_any_instance_of(Postzord::Dispatcher::Public).to receive(:deliver_to_remote) - allow_any_instance_of(Postzord::Dispatcher::Private).to receive(:deliver_to_remote) + allow(Workers::SendPublic).to receive(:perform_async) + allow(Workers::SendPrivate).to receive(:perform_async) end config.expect_with :rspec do |expect_config|