[rspec-users] How do you stub out callbacks?

Zach Dennis zach.dennis at gmail.com
Thu Aug 14 10:58:05 EDT 2008


On Thu, Aug 14, 2008 at 9:53 AM, Rob Lacey <robl at mail.pigdestroyer.co.uk> wrote:
> Hi there,
>
> I'm trying to write a spec for and existing model. It has an after_create
> callback which I'd like to stub out. Any quick solution to this?
>

My first question is why do you want to stub it out? My second
question is what spec are you wanting to stub it out in?

-- 
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com


More information about the rspec-users mailing list