Re: [rspec-users] Top level object in model specs

2009-05-12 Thread Steven Rogers
On May 12, 2009, at 4:15 PM, Ben Mabey wrote: Steven Rogers wrote: 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 t

Re: [rspec-users] Top level object in model specs

2009-05-12 Thread Ben Mabey
Steven Rogers wrote: 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

[rspec-users] Top level object in model specs

2009-05-12 Thread Steven Rogers
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 thoug