mock new send worker in tests

This commit is contained in:
Benjamin Neff 2016-05-25 03:19:59 +02:00
parent e843bf7b3c
commit caf5d562de

View file

@ -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|