spec/spec_helper.rb in paginate-responder-1.7.0 vs spec/spec_helper.rb in paginate-responder-1.8.0
- old
+ new
@@ -35,9 +35,18 @@
Kaminari.configure do |config|
config.default_per_page = 50
config.max_per_page = 50
end
+ when 'pagy'
+ require 'pagy'
+ require 'pagy/extras/array'
+ require 'pagy/extras/items'
+
+ TestController.include(Pagy::Backend)
+
+ Pagy::VARS[:items] = 50
+ Pagy::VARS[:max_items] = 50
end
RSpec.configure do |config|
config.order = 'random'
config.include SetupAndTeardownAdapter