Commit 4b501a60 authored by Andreas Brandl's avatar Andreas Brandl

Add second spec for limiting the query

parent a92a4b2f
......@@ -21,7 +21,11 @@ describe Gitlab::Pagination::Keyset::Pager do
end.not_to exceed_query_limit(0)
end
it 'returns a limited relation' do
it 'applies a LIMIT' do
expect(subject.limit_value).to eq(page.per_page)
end
it 'returns the limited relation' do
expect(subject).to eq(relation.limit(page.per_page))
end
......
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