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 tests on a
model and then re-enable it for specific tests that are testing the
I’m using Rspec 2.5, Factory Girl and also Shoulda matchers.
Any tips greatly received.