test/devise/async/backend/queue_classic_test.rb in devise-async-0.5.1 vs test/devise/async/backend/queue_classic_test.rb in devise-async-0.6.0
- old
+ new
@@ -5,24 +5,24 @@
module Backend
describe "QueueClassic" do
it "enqueues job" do
::QC::Queue.any_instance.expects(:enqueue).with(
"Devise::Async::Backend::QueueClassic.perform",
- "mailer_method", "User", 123)
- QueueClassic.enqueue(:mailer_method, "User", 123)
+ "mailer_method", "User", 123, {})
+ QueueClassic.enqueue(:mailer_method, "User", 123, {})
end
it "delegates to devise mailer when delivering" do
user = create_user
ActionMailer::Base.deliveries = []
- Backend::QueueClassic.perform(:confirmation_instructions, "User", user.id)
+ Backend::QueueClassic.perform(:confirmation_instructions, "User", user.id, {})
ActionMailer::Base.deliveries.size.must_equal 1
end
it "enqueues to configured queue" do
queue = mock(:enqueue => nil)
::QC::Queue.expects(:new).with(:custom_queue).once.returns(queue)
- QueueClassic.enqueue(:mailer_method, "User", 123)
+ QueueClassic.enqueue(:mailer_method, "User", 123, {})
end
end
end
end
end