diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-11 10:26:05 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-11 11:27:59 +0200 |
commit | 2c6c2ed6faded64277565b4c15455fe813753b8a (patch) | |
tree | 92927af6f051eabf5c6877fffe2d325bdd6be591 | |
parent | 5a903149e75465e4025f154977597aeef94b618c (diff) | |
download | gitlab-ce-2c6c2ed6faded64277565b4c15455fe813753b8a.tar.gz |
Always use the same order specs for `MultiCollectionPaginator`
-rw-r--r-- | spec/lib/gitlab/multi_collection_paginator_spec.rb | 2 |
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) |