summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-07-05 09:13:29 +1000
committerMark Lapierre <mlapierre@gitlab.com>2019-07-05 09:13:29 +1000
commitd23a654fc5fa1a3c36538b8f0206e34a549689aa (patch)
tree3b77092098f49a8279667ba2f157ea68e6321e00 /qa
parent01fea14f51329708f21b98d9b1e0d17fdded0fbf (diff)
downloadgitlab-ce-d23a654fc5fa1a3c36538b8f0206e34a549689aa.tar.gz
Initialize Issue labelsqa-fix-issue-resource
This provides a valid default value when labels are not specified explicitly.
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/resource/issue.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/resource/issue.rb b/qa/qa/resource/issue.rb
index 9c57a0f5afb..51b2af8b4ef 100644
--- a/qa/qa/resource/issue.rb
+++ b/qa/qa/resource/issue.rb
@@ -16,6 +16,10 @@ module QA
attribute :labels
attribute :title
+ def initialize
+ @labels = []
+ end
+
def fabricate!
project.visit!
@@ -38,7 +42,7 @@ module QA
def api_post_body
{
- labels: [labels],
+ labels: labels,
title: title
}
end