Ghost/core/test/unit
Marcos Ojeda 6f457768a2 Update urlFor to handle 'nav' contexts
needed for #4852
Before this, calling `{{url}}` with a nav context from #4541 would
output `/`. This adds a check in `urlFor` that looks for keys in a
nav context object, namely `slug`, `current`, `label`, & `url`.

This change allows for a url to pass through if used in a nav context.

* adds `schema.isNav()`
* adds tests to `url_spec.js`
* handles absolute urls correctly even if `absolute=true`
2015-01-31 09:29:53 -08:00
..
server_helpers Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
apps_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
config_spec.js [API] Retrieve next and previous post 2015-01-13 12:49:16 +00:00
error_handling_spec.js Deprecated mail.fromaddress, mail.from is Title <email@address> 2014-09-23 09:33:20 +01:00
filters_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
frontend_spec.js Misc test cleanup 2015-01-10 11:39:18 +00:00
importer_spec.js Assume datetime in import filename is UTC 2015-01-18 21:20:51 +00:00
mail_spec.js Fix email sending fail when blog title has a comma 2015-01-09 21:34:24 +00:00
middleware_spec.js Naming cleanup 2014-09-20 21:09:16 +02:00
migration_spec.js Add tests to verify db version hasn't changed 2014-12-20 10:24:20 +00:00
permissions_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
server_helpers_index_spec.js Cleans up HTML data attributes on body in default.hbs 2014-11-29 17:09:43 +01:00
server_helpers_template_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
server_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
showdown_client_integrated_spec.js Adds markdown highlight support 2014-12-04 13:37:29 +00:00
showdown_footnotes_spec.js Fix footnote handling for n-digit numbers 2015-01-17 14:56:13 +00:00
showdown_ghostGFM_spec.js Change autolinked URLs to output nice quotes 2014-10-14 11:09:06 +02:00
showdown_ghostimagepreview_spec.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
showdown_highlight_spec.js Adds markdown highlight support 2014-12-04 13:37:29 +00:00
storage_local-file-store_spec.js Naming cleanup 2014-09-20 21:09:16 +02:00
xmlrpc_spec.js Return computed url with post object 2014-12-10 17:23:02 +00:00