Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorWalmyr Lima <walmyr@gitlab.com>2019-08-19 21:15:44 +0300
committerWalmyr Lima <walmyr@gitlab.com>2019-08-20 20:33:01 +0300
commita971b7cb98439dfa1415b280dc63b113e6a699a4 (patch)
tree4e5c9860f727060088ea8e87ff34db91bec41170 /qa
parentbb15224286661aa27570364bd222ddfe3485263b (diff)
Allow issue fabrication with milestone
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/resource/issue.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/qa/qa/resource/issue.rb b/qa/qa/resource/issue.rb
index 51b2af8b4ef..16ab59352f3 100644
--- a/qa/qa/resource/issue.rb
+++ b/qa/qa/resource/issue.rb
@@ -3,7 +3,7 @@
module QA
module Resource
class Issue < Base
- attr_writer :description
+ attr_writer :description, :milestone
attribute :project do
Project.fabricate! do |resource|
@@ -44,7 +44,9 @@ module QA
{
labels: labels,
title: title
- }
+ }.tap do |hash|
+ hash[:milestone_id] = @milestone.id if @milestone
+ end
end
end
end