Improve protected branches feature spec.
1. Previously, we had a separate test for each and every possible role, and another test for access by user, each multiplied by the access types (merge and push), and further multiplied by the type of CRUD operation (create or update). 2. Since we allow selecting multiple access levels at once, it makes sense to collapse a lot of these tests. Now, in single test, we check access levels for all roles and 5 different users. Multiply that by 4 (as mentioned above), and we only have 4 tests total (that still test everything the previous tests did). 3. Use a shared example to reduce potential conflicts in the future, since CE access control specs are significantly different.
Showing
Please register or sign in to comment