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 ?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/78b1537c-0761-48fb-b03f-8cd0b97fb28c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to