[Rails] Re: Machinist - having problems stubbing an after_create filter

2009-07-22 Thread Max Williams
Gustav Paul wrote: Hey Max, Try: instance = YourModel.make_unsaved then stub the after_create method and save the object. Regards, Gustav Paul On Tue, Jul 21, 2009 at 5:50 PM, Max Williams aha! If only there was an rdoc for the version of machinist i have installed i could

[Rails] Re: Machinist - having problems stubbing an after_create filter

2009-07-21 Thread Gustav Paul
Hey Max, Try: instance = YourModel.make_unsaved then stub the after_create method and save the object. Regards, Gustav Paul On Tue, Jul 21, 2009 at 5:50 PM, Max Williams rails-mailing-l...@andreas-s.net wrote: Hi all I'm moving to using Machinist in my rspec tests and am having a