[rspec-users] Top level object in model specs

Steven Rogers srogers1 at gmail.com
Tue May 12 16:52:45 EDT 2009

I want to stub a global method in a model spec, but I can't figure out  
what's the equivalent in model specs for controller.stub! in  
controller specs and template.stub! in view specs . . . at least, it  
seems like I need to do that in order to make acts_as_audited happy in  
models. Any thoughts?


More information about the rspec-users mailing list