diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-02-22 09:08:20 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-02-22 09:08:20 +1100 |
commit | 0494930d7a939297a071bb817ad0227da17dda1b (patch) | |
tree | e26aa96d6b7ed2a134e1253e53dcdf97a25caaf1 /spec | |
parent | 5cc838d325fb3fcdd7a86a43c67a442ce5feb3d9 (diff) | |
download | gitlab-ce-0494930d7a939297a071bb817ad0227da17dda1b.tar.gz |
Refactored specs
Diffstat (limited to 'spec')
-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 1fc1c20b8a3..0bf7977fb02 100644 --- a/spec/features/issuables/issuable_list_spec.rb +++ b/spec/features/issuables/issuable_list_spec.rb @@ -59,6 +59,7 @@ describe 'issuable list', feature: true do create(:award_emoji, :downvote, awardable: issuable) create(:award_emoji, :upvote, awardable: issuable) + end if issuable_type == :issue issue = Issue.reorder(:iid).first @@ -67,8 +68,7 @@ describe 'issuable list', feature: true do source_project: project, source_branch: FFaker::Name.name) - MergeRequestsClosingIssues.create!(issue: issue, merge_request: merge_request) if MergeRequestsClosingIssues.count.zero? - end + MergeRequestsClosingIssues.create!(issue: issue, merge_request: merge_request) end end end |