Skip to content

Commit

Permalink
ensure paginator total entries size works on rawquery
Browse files Browse the repository at this point in the history
  • Loading branch information
u007 committed May 16, 2018
1 parent cce54f7 commit cfb8124
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions finders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ func Test_Count_Disregards_Pagination(t *testing.T) {
q := tx.Paginate(1, 3)
q.All(&first_users)

a.Equal(len(names), q.Paginator.TotalEntriesSize) //ensure paginator populates count

a.Equal(3, len(first_users))
totalFirstPage := q.Paginator.TotalPages

Expand Down

0 comments on commit cfb8124

Please sign in to comment.