On Thu, Sep 2, 2010 at 6:16 PM, nathanvda <nathan...@gmail.com> wrote: > This will sound awfully stupid, but i have no idea how to start > writing any mailer tests. > > I have a mailer class > > class SmsMailer < ActionMailer::Base > > def fake_sms(envelope) > mail(:to => envelope.user.email) > end > end > > how do I test this? > I tried googling for documentation, but was unable to find something > relevant (probable used wrong search terms). > > Or do i just do view-tests on the corresponding view? > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
What you want is http://github.com/bmabey/email-spec. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users