File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 2323
2424 if ApiPagination . config . paginator == :kaminari
2525 context 'pagination with kaminari' do
26- before { ApiPagination . config . paginator = :kaminari }
2726 include_examples 'produces_correct_sql'
2827 end
2928 end
3231 require 'will_paginate/active_record'
3332
3433 context 'pagination with will_paginate' do
35- before { ApiPagination . config . paginator = :will_paginate }
3634 include_examples 'produces_correct_sql'
3735 end
3836 end
Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ class Fixnum
279279
280280 expect ( response . header [ 'Per-Page' ] ) . to eq (
281281 case ApiPagination . config . paginator
282+ when :pagy then Pagy ::VARS [ :items ] . to_s
282283 when :kaminari then Kaminari . config . default_per_page . to_s
283284 when :will_paginate then WillPaginate . per_page . to_s
284285 end
You can’t perform that action at this time.
0 commit comments