Skip to content

Commit 87a93b3

Browse files
committed
more cleanup
1 parent a00f3c0 commit 87a93b3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

spec/active_record_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
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
@@ -32,7 +31,6 @@
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

spec/rails_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)