From 5c261439e2cbc77c7bc1ce368e52bd60188d5c55 Mon Sep 17 00:00:00 2001 From: Mark Lapierre Date: Thu, 5 Sep 2019 16:13:22 +1000 Subject: 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. --- qa/qa.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qa/qa.rb') diff --git a/qa/qa.rb b/qa/qa.rb index 9bf28d396ba..b38c39a621f 100644 --- a/qa/qa.rb +++ b/qa/qa.rb @@ -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' -- cgit v1.2.1