collectiveidea / audited

Audited (formerly acts_as_audited) is an ORM extension that logs all changes to your Rails models.
MIT License
3.34k stars 645 forks source link

Conditionally turn off audits in tests #699

Open JerrodCarpenter opened 4 months ago

JerrodCarpenter commented 4 months ago

I'm trying to find a way to only have audits on for the specific tests that test audits. Turning audits off for the 95% of other tests will really speed up test suites. I can't quite figure out how to turn this on/off on a file per file or test by test basis though. Has anyone done this in the past?