Always use the same order specs for `MultiCollectionPaginator`

This commit is contained in:
Bob Van Landuyt 2017-10-11 10:26:05 +02:00
parent 5a903149e7
commit 2c6c2ed6fa
1 changed files with 1 additions and 1 deletions

View File

@ -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)