summaryrefslogtreecommitdiff
path: root/qa/qa/resource/repository/project_push.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/resource/repository/project_push.rb')
-rw-r--r--qa/qa/resource/repository/project_push.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/qa/resource/repository/project_push.rb b/qa/qa/resource/repository/project_push.rb
index c84ade3a140..f79bb035c46 100644
--- a/qa/qa/resource/repository/project_push.rb
+++ b/qa/qa/resource/repository/project_push.rb
@@ -4,11 +4,12 @@ module QA
module Resource
module Repository
class ProjectPush < Repository::Push
+ attr_accessor :project_name
attr_writer :wait_for_push
attribute :project do
Project.fabricate! do |resource|
- resource.name = 'project-with-code'
+ resource.name = project_name
resource.description = 'Project with repository'
end
end
@@ -19,6 +20,7 @@ module QA
@commit_message = "This is a test commit"
@branch_name = 'master'
@new_branch = true
+ @project_name = 'project-with-code'
@wait_for_push = true
end