0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/test/unit
Harry Wolff 91ca4a43e5 Fix routing of posts and static pages
closes #1757 and #1773

- switches routes.frontend for posts and pages
to use a regex with two capturing groups.  This removes
the need to dynamically remove an express route at a
later point, leaving the decision making to frontend
controller.

- added unit tests for all routing conditions that 
can arise for posts and pages.

- updated functional tests to also test for same thing
in unit tests

- removes old code from server/api/index that used
to fix this issue, but is no longer needed

- removed some un-needed require statements in routes/admin
2013-12-30 02:04:46 -05:00
..
admin_spec.js Further grunt & test cleanup 2013-11-11 21:38:52 +00:00
client_ghostdown_spec.js add test for allowing 4 underscores in markdown 2013-11-24 17:38:12 +01:00
client_showdown_int_spec.js Allow newline when quotes are used at start of a sentence 2013-11-21 13:56:43 +00:00
config_spec.js Don't allow a subdirectory called Ghost 2013-12-30 01:04:29 +00:00
errorHandling_spec.js Move API tests to /integration/ 2013-11-07 14:26:47 +01:00
export_spec.js Replace cookieSession with session 2013-11-24 15:29:36 +01:00
filters_spec.js This commit removes a lot of code from ghost.js, including: 2013-11-28 09:21:53 -05:00
frontend_spec.js Fix routing of posts and static pages 2013-12-30 02:04:46 -05:00
import_spec.js Update import tool to be safe 2013-12-29 13:23:23 +00:00
mail_spec.js remove ghost.settings and ghost.notifications 2013-12-06 09:51:35 +01:00
middleware_spec.js Remove ghost.js 2013-12-07 10:10:02 -05:00
permissions_spec.js Replace cookieSession with session 2013-11-24 15:29:36 +01:00
plugin_proxy_spec.js Direct api access for app proxy 2013-11-29 16:26:56 +00:00
server_helpers_index_spec.js Adds URL back into theme config 2013-12-26 12:15:10 +00:00
server_helpers_template_spec.js Path, url and subdir cleanup & test 2013-12-28 16:09:56 +00:00
server_spec.js Remove ghost.js 2013-12-07 10:10:02 -05:00
shared_gfm_spec.js Test file cleanup on accoutn of OCD 2013-11-11 10:37:09 +00:00
storage_localfilesystem_spec.js Path, url and subdir cleanup & test 2013-12-28 16:09:56 +00:00