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 23
23
24
24
if ApiPagination . config . paginator == :kaminari
25
25
context 'pagination with kaminari' do
26
- before { ApiPagination . config . paginator = :kaminari }
27
26
include_examples 'produces_correct_sql'
28
27
end
29
28
end
32
31
require 'will_paginate/active_record'
33
32
34
33
context 'pagination with will_paginate' do
35
- before { ApiPagination . config . paginator = :will_paginate }
36
34
include_examples 'produces_correct_sql'
37
35
end
38
36
end
Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ class Fixnum
279
279
280
280
expect ( response . header [ 'Per-Page' ] ) . to eq (
281
281
case ApiPagination . config . paginator
282
+ when :pagy then Pagy ::VARS [ :items ] . to_s
282
283
when :kaminari then Kaminari . config . default_per_page . to_s
283
284
when :will_paginate then WillPaginate . per_page . to_s
284
285
end
You can’t perform that action at this time.
0 commit comments