Skip to content
Extraits de code Groupes Projets
Valider caf5d562 rédigé par Benjamin Neff's avatar Benjamin Neff
Parcourir les fichiers

mock new send worker in tests

parent e843bf7b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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|
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter