I\'m testing a model with an after create callback that I\'d like to run only on some occasions while testing. How can I skip/run callbacks from a factory?
c
This will work with current rspec syntax (as of this post) and is much cleaner:
before do User.any_instance.stub :run_something end