Ghost/core/test
Hannah Wolfe 5f2c913fc1 Clean up paginated URL generation
refs #5091, #6612

- unify getNextUrl & getPrevUrl into getPaginatedUrl
- ensure that it can generate a prev, next or exact page no url
- ensure that it can figure out the base url
- use the same code from the page_url helper
- refactor the tests to ensure there's 100% coverage

Following on from #6612, this ensures that pagination always works regardless of whether the channel is default or custom
2016-03-20 22:35:00 +00:00
..
functional Always override database config + exit tests on error 2016-03-14 15:39:59 +00:00
integration Fix role fixture ordering bug in pg tests 2016-03-15 19:08:25 +00:00
unit Clean up paginated URL generation 2016-03-20 22:35:00 +00:00
utils Refactor & test fixture migrations 2016-03-03 09:03:37 +00:00
.jshintrc Remove jshint rules that are no longer supported 2015-01-23 21:00:37 +00:00