We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aed628 commit 59a15beCopy full SHA for 59a15be
lib/blacklight/solr_response/pagination_methods.rb
@@ -1,6 +1,7 @@
1
module Blacklight::SolrResponse::PaginationMethods
2
3
include Kaminari::PageScopeMethods
4
+ include Kaminari::ConfigurationMethods::ClassMethods
5
6
def limit_value #:nodoc:
7
rows
spec/lib/blacklight_solr_response_spec.rb
@@ -63,6 +63,9 @@ def create_response
63
expect(r.total_count).to eq(r.total)
64
expect(r.next_page).to eq(r.current_page + 1)
65
expect(r.prev_page).to eq(nil)
66
+ if Kaminari.config.respond_to? :max_pages
67
+ expect(r.max_pages).to be_nil
68
+ end
69
expect(r).to be_a_kind_of Kaminari::PageScopeMethods
70
end
71
0 commit comments