diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-23 19:37:14 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-03 19:54:48 +0300 |
commit | 169dc4cec1f45cdcc548e3e682e4fd6f4c98926a (patch) | |
tree | bcf157ecd3f15f27ddb55fabebad1a8842c2bcc1 /spec/features/issuables | |
parent | 5f7cb26394921535a6e1e15f3baee7666c3ef654 (diff) |
Fix brittle specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/features/issuables')
-rw-r--r-- | spec/features/issuables/issuable_list_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/issuables/issuable_list_spec.rb b/spec/features/issuables/issuable_list_spec.rb index f324354dd46..3dc872ae520 100644 --- a/spec/features/issuables/issuable_list_spec.rb +++ b/spec/features/issuables/issuable_list_spec.rb @@ -51,7 +51,7 @@ describe 'issuable list', feature: true do if issuable_type == :issue create(:issue, project: project, author: user) else - create(:merge_request, source_project: project, source_branch: "#{n}-feature") + create(:merge_request, source_project: project, source_branch: generate(:branch)) end 2.times do @@ -66,7 +66,7 @@ describe 'issuable list', feature: true do issue = Issue.reorder(:iid).first merge_request = create(:merge_request, source_project: project, - source_branch: 'my-bug-fix') + source_branch: generate(:branch)) MergeRequestsClosingIssues.create!(issue: issue, merge_request: merge_request) end |