[rspec-users] Model Testings with Observers

aslak hellesoy aslak.hellesoy at gmail.com
Mon Dec 4 13:44:42 EST 2006

On 12/4/06, s.ross <cwdinfo at gmail.com> wrote:
> I have a Rails model that has an observer. The function of the
> observer is to send an email when a particular state change occurs in
> the model. Because the template rendering code is not loaded when
> doing model testing, I've had to shut off the email functionality of
> the observer for testing.
> Is there a better way to handle this?

Submit an RFE to Rubyforge with some code describing how you would
like it to work.


> Thanks
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list