diff options
author | Walmyr Lima <walmyr@gitlab.com> | 2019-08-19 20:15:44 +0200 |
---|---|---|
committer | Walmyr Lima <walmyr@gitlab.com> | 2019-08-20 19:33:01 +0200 |
commit | a971b7cb98439dfa1415b280dc63b113e6a699a4 (patch) | |
tree | 4e5c9860f727060088ea8e87ff34db91bec41170 /qa | |
parent | bb15224286661aa27570364bd222ddfe3485263b (diff) | |
download | gitlab-ce-a971b7cb98439dfa1415b280dc63b113e6a699a4.tar.gz |
Allow issue fabrication with milestone
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/resource/issue.rb | 6 |
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 |