summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-10-11 10:26:05 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-11 11:27:59 +0200
commit2c6c2ed6faded64277565b4c15455fe813753b8a (patch)
tree92927af6f051eabf5c6877fffe2d325bdd6be591
parent5a903149e75465e4025f154977597aeef94b618c (diff)
downloadgitlab-ce-2c6c2ed6faded64277565b4c15455fe813753b8a.tar.gz
Always use the same order specs for `MultiCollectionPaginator`
-rw-r--r--spec/lib/gitlab/multi_collection_paginator_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/multi_collection_paginator_spec.rb b/spec/lib/gitlab/multi_collection_paginator_spec.rb
index 385cfa63dda..68bd4f93159 100644
--- a/spec/lib/gitlab/multi_collection_paginator_spec.rb
+++ b/spec/lib/gitlab/multi_collection_paginator_spec.rb
@@ -1,7 +1,7 @@
require 'spec_helper'
describe Gitlab::MultiCollectionPaginator do
- subject(:paginator) { described_class.new(Project.all, Group.all, per_page: 3) }
+ subject(:paginator) { described_class.new(Project.all.order(:id), Group.all.order(:id), per_page: 3) }
it 'combines both collections' do
project = create(:project)