Disable audit creation in factory_girl-created models in tests
|Assigned To:||Dominic Cleal|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/4504|
|Velocity based estimate||-|
factory_girl creates models in tests with a regular save! call, which results in audit entries being created for every factory-based fixture. Disabling auditing while creating these would save on writes to the database in the test environment, as they're pretty much entirely unused.
The few tests that do rely on factory_girl objects having corresponding audit entries can have them manually enabled (opt-in).