-
- Downloads
Refactor protected branch resource and spec
Rename Resource::Branch to Resource::ProtectedBranch to be clear that it configures the settings to protect a branch, rather than just creating a new branch. Make branch an attribute to make it clear creating the branch is not the main responsibility of the class. Initialize the project with a readme so that the resource only has to push once when it creates a branch. Stop ProjectPush from visiting the project page so that it doesn't have to use the browser UI.
Showing
- qa/qa.rb 1 addition, 1 deletionqa/qa.rb
- qa/qa/resource/protected_branch.rb 18 additions, 23 deletionsqa/qa/resource/protected_branch.rb
- qa/qa/resource/repository/project_push.rb 0 additions, 1 deletionqa/qa/resource/repository/project_push.rb
- qa/qa/specs/features/browser_ui/3_create/repository/push_protected_branch_spec.rb 2 additions, 1 deletion...wser_ui/3_create/repository/push_protected_branch_spec.rb
- qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb 1 addition, 1 deletion..._ui/4_verify/pipeline/create_and_process_pipeline_spec.rb
Please register or sign in to comment