Re: [rspec-users] Skipping callbacks that aren't necessary for what i'm testing

2011-04-13 Thread Mike Mazur
Hi, On Wed, Apr 13, 2011 at 16:56, Paul S. wrote: > I have an Address model that has a before_validation callback that goes > off and geocodes the address. > > I'm concerned that for all the tests in my Address model I'm going to be > triggering that callback, even when it's not what I'm testing.

[rspec-users] Skipping callbacks that aren't necessary for what i'm testing

2011-04-13 Thread Paul S.
I have an Address model that has a before_validation callback that goes off and geocodes the address. I'm concerned that for all the tests in my Address model I'm going to be triggering that callback, even when it's not what I'm testing. Is there a nice way to stub the callback by default for all