test/unit/pagination_test.rb in bento_search-1.1.0 vs test/unit/pagination_test.rb in bento_search-1.2.0

- old
+ new

@@ -11,18 +11,20 @@ assert_equal 1, pag.start_record assert_equal 10, pag.end_record assert pag.first_page? assert ! pag.last_page? assert_equal 100, pag.count_records + assert_equal 100, pag.total_count # some kaminari's want it called this instead. assert_equal 10, pag.total_pages assert_equal 10, pag.per_page end def test_last_page pag = Pagination.new(100, {:page => 5, :start => 80, :per_page => 20}) assert_equal 5, pag.current_page assert_equal 81, pag.start_record + assert_equal 80, pag.offset_value assert_equal 100, pag.end_record assert ! pag.first_page? assert pag.last_page? assert_equal 100, pag.count_records assert_equal 5, pag.total_pages