Forum: Ruby on Rails Rspec ActiveJob and ActionMailer

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kaluzny Olivier (Guest)
on 2015-01-05 09:46
(Received via mailing list)

Since Rails 4.2, ActionMailer is integrate with ActiveJob. So this code


create a queue 'mailers' and add it automatically, So, no class
UserMailerWorker is needed.
How can I test without class worker ?
Before I do

 expect(UserMailerWorker).to have_queue_size_of(1)

Whats can I do now ? How test directly with queue name ?
This topic is locked and can not be replied to.