Forum: Ruby on Rails Rspec ActiveJob and ActionMailer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1591979ebbd9cc12f57908637cb6fbd9?d=identicon&s=25 Kaluzny Olivier (Guest)
on 2015-01-05 09:46
(Received via mailing list)
Hi,

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

 UserMailer.sponsorship_accepted(invitation).deliver_later


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.