diff options
author | Rémy Coutable <remy@rymai.me> | 2016-03-01 14:32:20 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-08 18:23:20 +0300 |
commit | e632bd26e4b70b100e5c9891b4b2cc7e267080c9 (patch) | |
tree | 60bebb20fd06870a3a2a4f1164b7c43571479b17 /spec/factories/merge_requests.rb | |
parent | 36730e8e63c0ebe16785f33cb2b740f8d67b2b25 (diff) |
Fixes "iid of max iid" in Issuable sidebar for merged MR
Fixes #13928
Diffstat (limited to 'spec/factories/merge_requests.rb')
-rw-r--r-- | spec/factories/merge_requests.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/merge_requests.rb b/spec/factories/merge_requests.rb index ca1c636fce4..a9df5fa1d3a 100644 --- a/spec/factories/merge_requests.rb +++ b/spec/factories/merge_requests.rb @@ -56,6 +56,10 @@ FactoryGirl.define do target_branch "feature" end + trait :merged do + state :merged + end + trait :closed do state :closed end @@ -84,6 +88,7 @@ FactoryGirl.define do merge_user author end + factory :merged_merge_request, traits: [:merged] factory :closed_merge_request, traits: [:closed] factory :reopened_merge_request, traits: [:reopened] factory :merge_request_with_diffs, traits: [:with_diffs] |