diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-07-05 09:13:29 +1000 |
---|---|---|
committer | Mark Lapierre <mlapierre@gitlab.com> | 2019-07-05 09:13:29 +1000 |
commit | d23a654fc5fa1a3c36538b8f0206e34a549689aa (patch) | |
tree | 3b77092098f49a8279667ba2f157ea68e6321e00 /qa | |
parent | 01fea14f51329708f21b98d9b1e0d17fdded0fbf (diff) | |
download | gitlab-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.rb | 6 |
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 |