Commit 2c6c2ed6 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Always use the same order specs for `MultiCollectionPaginator`

parent 5a903149
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment