The code inside test method doesn't get executed at all.
class MailSender < ActionMailer::Base default :from => 'no.reply@some.where'
def test() should_die_here mail( :to => 'to@to.com', :subject => 'Test', :text => 'Text').deliver end end
The code inside test method doesn't get executed at all.
class MailSender < ActionMailer::Base default :from => 'no.reply@some.where'
def test() should_die_here mail( :to => 'to@to.com', :subject => 'Test', :text => 'Text').deliver end end
The code inside test method doesn't get executed at all.
class MailSender < ActionMailer::Base default :from => 'no.reply@some.where'
def test()
Should that not be def self.test() if you want to call it using MailSender.test()
Colin
Colin Law wrote in post #1168195: