0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/test/integration/api
Hannah Wolfe b2051dacf7 Fix post model deletes tags when editing post only
fixes #6919, refs #6917

- resolves the problem by guarding for `tags` being undefined or null
   - If it is undefined, we don't do any tag processing
   - If it is null, we don't do any tag processing
   - To delete all tags, you would provide `tags: []`
- adds tests at both the model (using withRelated) and API (using includes) layers
- moves the tests for the post updateTags functionality from the tag model spec to the post model spec & cleans up a bit
2016-06-02 22:52:34 +01:00
..
advanced_browse_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
api_authentication_spec.js Refactor authentication API into pipeline format 2016-03-07 11:53:54 -06:00
api_configuration_spec.js Restructure Configuration API endpoint 2016-02-19 18:49:23 +00:00
api_db_spec.js Replace busboy upload middleware with multer 2016-04-07 21:30:46 -05:00
api_mail_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
api_notifications_spec.js Return http status 204 on deletes 2016-03-22 11:42:48 -05:00
api_posts_spec.js Fix post model deletes tags when editing post only 2016-06-02 22:52:34 +01:00
api_roles_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
api_settings_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
api_slugs_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
api_subscription_spec.js Subscribers: Error Handling for adding subscribers 2016-05-11 12:55:29 +02:00
api_tags_spec.js Return http status 204 on deletes 2016-03-22 11:42:48 -05:00
api_themes_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
api_upload_spec.js Replace busboy upload middleware with multer 2016-04-07 21:30:46 -05:00
api_users_spec.js add events for post scheduling 2016-04-18 16:44:41 +02:00