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 ce08c52 commit 01f351aCopy full SHA for 01f351a
elasticsearch-model/test/integration/active_record_pagination_test.rb
@@ -90,6 +90,18 @@ class ::Article < ActiveRecord::Base
90
assert records.last_page?, "Should be the last page"
91
assert records.out_of_range?, "Should be out of range"
92
end
93
+
94
+ context "with specific model settings" do
95
+ teardown do
96
+ Article.instance_variable_set(:@_default_per_page, nil)
97
+ end
98
99
100
+ should "respect paginates_per" do
101
+ Article.paginates_per 50
102
103
+ assert_equal 50, Article.search('*').page(1).records.size
104
105
106
107
0 commit comments