0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/test
David Balderston c55140d0db Change default setting for to inside foreach helper
closes #6604

* Default for `to` was always `(from-1) + limit`. This caused a problem
where the `to` value could be higher than the length of the number of
blog posts, causing `@last` to never be called/reached
* Now sets `to` to have a default of `length` and if a limit was sent
through and not higher than `length`, to then set `to` to that value
* Added some extra tests for `@last` and `@first` use cases
* Added some inline commenting
2016-03-17 17:52:38 -07: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 Change default setting for to inside foreach helper 2016-03-17 17:52:38 -07: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