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 geocoding functionality. I'm using Rspec 2.5, Factory Girl and also Shoulda matchers. Any tips greatly received. Paul. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users