Make spec insusceptible to test branch list changes
After adding a new branch to TestEnv::BRANCH_SHA spec Projects::BranchesByModeService started failing. It required adjusting every time branches list was changed. Since adjusting that array also requires one to manually remove directories ./tmp/tests/gitlab-test*, it have initially gone unnoticed. This change makes the spec calculate the expected values dynamically, so future changes in branch list shouldn't break this spec.
Showing
Please register or sign in to comment