mock new send worker in tests
This commit is contained in:
parent
e843bf7b3c
commit
caf5d562de
1 changed files with 2 additions and 2 deletions
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Reference in a new issue