Commit graph

6 commits

Author SHA1 Message Date
Francisco Javier López
7c2b7296d4 Added default order to UserFinder 2017-12-04 09:49:53 +00:00
Tomasz Maczukin
a9212e0f07
Add some unit tests for lib/api/helpers.rb 2017-11-27 23:06:42 +01:00
Toon Claes
e17d9529fa Total Pages should be at least one
And the link to the last page cannot be `page=0`.
2017-08-17 21:47:01 +02:00
Toon Claes
a98d17a838 Add specs for pagination Link header
Add specs that check the 'Link' header for the inclusion of:

 - rel="first"
 - rel="last"
 - rel="prev"
 - rel="next"

Fixes gitlab-org/gitlab-ce#36618

Related to gitlab-com/infrastructure#2532
2017-08-17 21:47:01 +02:00
Robert Speicher
72a7b30c9f Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
Grzegorz Bizon
f9331db136 Add tests for pagination module extracted from API 2016-12-27 12:11:29 +01:00