Skip to content

Commit 39b1167

Browse files
committed
[MODEL] Fixed integration tests for ActiveRecord pagination
1 parent 9ec7454 commit 39b1167

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

elasticsearch-model/test/integration/active_record_pagination_test.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ class ::ArticleForPagination < ActiveRecord::Base
9292

9393
assert_equal 0, records.size
9494
assert_equal 6, records.current_page
95-
assert_equal 5, records.prev_page
95+
9696
assert_equal nil, records.next_page
9797
assert_equal 3, records.total_pages
9898

9999
assert ! records.first_page?, "Should NOT be the first page"
100-
assert records.last_page?, "Should be the last page"
101100
assert records.out_of_range?, "Should be out of range"
102101
end
103102

0 commit comments

Comments
 (0)