[rspec-users] Model Testings with Observers

s.ross cwdinfo at gmail.com
Mon Dec 4 13:15:35 EST 2006

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?


More information about the rspec-users mailing list