Thursday, January 12, 2012

How to disable acts_as_audited 2.0 rails plugin in Rails 3.1 and RSpec

Create disable.rb under spec/support folder and call disable_auditing method on your modes. For example:
Account.disable_auditing
Cart.disable_auditing