How to disable belongs_to :touch option in Rspec tests for Rails models?
问题 Having a large model stack and using doll caching techniques extensively, one ends up with lots of parent models been "touched" after a model update. While testing, this seems to be a time waster unless you try to test that feature specifically. Is there a way to prevent models to touch their belongs_to associations for the test environment or at a test level? UPDATE 1: My first attempt to the case would be to # /config/initializers/extensions.rb # class ActiveRecord::Base def self.without