We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ec7454 commit 39b1167Copy full SHA for 39b1167
elasticsearch-model/test/integration/active_record_pagination_test.rb
@@ -92,12 +92,11 @@ class ::ArticleForPagination < ActiveRecord::Base
92
93
assert_equal 0, records.size
94
assert_equal 6, records.current_page
95
- assert_equal 5, records.prev_page
+
96
assert_equal nil, records.next_page
97
assert_equal 3, records.total_pages
98
99
assert ! records.first_page?, "Should NOT be the first page"
100
- assert records.last_page?, "Should be the last page"
101
assert records.out_of_range?, "Should be out of range"
102
end
103
0 commit comments