summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalmyr Lima <walmyr@gitlab.com>2019-09-06 18:10:19 +0200
committerWalmyr Lima <walmyr@gitlab.com>2019-09-06 18:13:45 +0200
commit404950f1cd40339ff732a2e8ba007ff52adb5be2 (patch)
tree627e93ac55ca30279ee8344f3cc5b1eb222f3b51
parentfce0bf4ab7896852df364ebecee50fe0935fb23a (diff)
downloadgitlab-ce-qa/e2e-tests-for-issue-weights.tar.gz
Update issue resource to allow for adding weightqa/e2e-tests-for-issue-weights
-rw-r--r--qa/qa/resource/issue.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/qa/resource/issue.rb b/qa/qa/resource/issue.rb
index 16ab59352f3..8539eaeb337 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, :milestone
+ attr_writer :description, :milestone, :weight
attribute :project do
Project.fabricate! do |resource|
@@ -46,6 +46,7 @@ module QA
title: title
}.tap do |hash|
hash[:milestone_id] = @milestone.id if @milestone
+ hash[:weight] = @weight if @weight
end
end
end