diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-09-05 16:13:22 +1000 |
---|---|---|
committer | Mark Lapierre <mlapierre@gitlab.com> | 2019-09-11 11:48:14 +1000 |
commit | 5c261439e2cbc77c7bc1ce368e52bd60188d5c55 (patch) | |
tree | 8549375b833016c0f5f0dbb58b71317ebea46bc6 /qa/qa.rb | |
parent | c0b9e50af9ecdbaf6cd8bb0dbcf23388c3c388e4 (diff) | |
download | gitlab-ce-5c261439e2cbc77c7bc1ce368e52bd60188d5c55.tar.gz |
Refactor protected branch resource and specqa-ml-refactor-protected-branch-test
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.
Diffstat (limited to 'qa/qa.rb')
-rw-r--r-- | qa/qa.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ module QA autoload :MergeRequestFromFork, 'qa/resource/merge_request_from_fork' autoload :DeployKey, 'qa/resource/deploy_key' autoload :DeployToken, 'qa/resource/deploy_token' - autoload :Branch, 'qa/resource/branch' + autoload :ProtectedBranch, 'qa/resource/protected_branch' autoload :CiVariable, 'qa/resource/ci_variable' autoload :Runner, 'qa/resource/runner' autoload :PersonalAccessToken, 'qa/resource/personal_access_token' |