diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-09 21:41:45 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-09 21:41:45 +0800 |
commit | 412db1874fbf2847ad9d84e9d2344d4c4d4b9fef (patch) | |
tree | 24b39366555209a0db724d9b4eb49fff4fe2e620 /spec/support/issuables_list_metadata_shared_examples.rb | |
parent | a85eed6446fa0b4b899a71cb9a3cb5e011a41c3a (diff) | |
download | gitlab-ce-412db1874fbf2847ad9d84e9d2344d4c4d4b9fef.tar.gz |
Fix some tests and report the error message
Diffstat (limited to 'spec/support/issuables_list_metadata_shared_examples.rb')
-rw-r--r-- | spec/support/issuables_list_metadata_shared_examples.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/issuables_list_metadata_shared_examples.rb b/spec/support/issuables_list_metadata_shared_examples.rb index a60d3b0d22d..75982432ab4 100644 --- a/spec/support/issuables_list_metadata_shared_examples.rb +++ b/spec/support/issuables_list_metadata_shared_examples.rb @@ -2,12 +2,12 @@ shared_examples 'issuables list meta-data' do |issuable_type, action = nil| before do @issuable_ids = [] - 2.times do |n| + %w[fix improve/awesome].each do |source_branch| issuable = if issuable_type == :issue create(issuable_type, project: project) else - create(issuable_type, source_project: project, source_branch: "#{n}-feature") + create(issuable_type, source_project: project, source_branch: source_branch) end @issuable_ids << issuable.id |