Rspec ActiveJob and ActionMailer

20 views
Skip to first unread message

Kaluzny Olivier

unread,
Jan 5, 2015, 3:45:45 AM1/5/15
to rubyonra...@googlegroups.com
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 ?

Reply all
Reply to author
Forward
0 new messages