Add a cop to check usage of `before(:all)`
Add a cop to check usage of before(:all)
https://docs.gitlab.com/ee/development/testing_guide/best_practices.html#common-test-setup
As much as possible, do not implement this using before(:all) or before(:context). If you do, you would need to manually clean up the data as those hooks run outside a database transaction.
Edited by Alina Mihaila