Skip to content

Clean the test path after each spec run

Stan Hu requested to merge sh-fix-issue-5461 into master

FactoryBot's build_stubbed ignores the current database sequence of the projects table and starts at ID 1000. If more than 1000 projects are created during a test run, leftover repositories can cause spec failures. For example, a spec that expects an empty repository may fail since there may be existing content.

Closes #5461 (closed)

Edited by Stan Hu

Merge request reports