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|