I want to simulate a scenario where email sent using actionmailer has failed. How do I induce mail delivery error in my tests ? eg: begin UserNotify.deliver_signup(@user, params[''user''][''password''], url) rescue puts "user confirmation email error" <....other code ... > end I need to verify that user_confirmation_email_error is printed when deliver_* method throws an exception --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---