Skip to content

Update Branch Rule specs to use BranchRule objects

Joe Woodward requested to merge chore/refactor-branch-rule-specs into master

What does this MR do and why?

Update Branch Rule specs to use BranchRule objects

Branch Rules are a new concept that wraps around existing concepts. Normal Projects::BranchRule objects are proxies for ProtectedBranch records. Prior to this change we were using ProtectedBranch records in the specs rather than initializing Projects::BranchRule objects.

Related to !142306 (merged)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports