On 12/12/07, Pat Maddox <[EMAIL PROTECTED]> wrote:

> I would not mock the call, and would instead just let the mailer do
> its thing.  You can verify that a message was sent, match the
> subject/content, etc.  It's very lightweight so there's no reason not
> to use it.

The problem with this is that it combines testing the sending of the
message with testing how it's rendered.

I prefer to do the latter in the context of testing the mailer.

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to