[rspec-users] Top level object in model specs

Steven Rogers
Tue, 12 May 2009 20:52:45 -0000

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?

Thanks,
Steve