[rspec-users] Stubbing Observers in rails?

Doug Cole dougcole at gmail.com
Mon Jul 30 14:09:28 EDT 2007


In most of my tests I'd like to be able to stub out the observers for my
models, but I'm not sure the best way to do this.  I doesn't look like there
is a way to stub all instance methods, and I don't seem to be able to stub
early enough to stub out the observer as it's instantiated.  I can think of
several hackish ways to get around it, but I was wondering if anyone could
suggest a good solution?  Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070730/18dc5925/attachment.html 


More information about the rspec-users mailing list