Ghost/core/test/utils
Jason Williams 9fe573a0c5 Refactor content deletion
- Simplify the `init` method in `models/index.js` so that it no longer
  returns a promise. Easier to use.
- Eliminates the `deleteAllContent` method from `models/index.js` as it
  can all be handled at the API layer in a single spot.
- Optimize `destroyAllContent` in `api/db.js`. Eliminates
  double-fetching every post from the database and converting it to
  JSON. Also only fetches ids from the database instead of the entire
  model.
- Eliminates the custom static method `destroy` in the Post model in
  favor of handling detaching tag relations in a single place (the
  `destroying` event). This also eliminates a big source of unneeded
  database round trips--needing to get post ids to feed into
  `Post.destroy()` which then re-fetches the post again.
2016-03-22 10:10:09 -05:00
..
fixtures Move db connection out of config 2016-02-12 13:56:23 +00:00
jscs-rules Fix typo in disallow-object-controller 2015-01-13 22:13:26 +07:00
api.js Restructure Configuration API endpoint 2016-02-19 18:49:23 +00:00
configUtils.js Unify usage of config in unit tests 2015-12-15 10:48:24 +00:00
fork.js Fix client.secret for new installs 2015-09-25 21:03:33 +02:00
index.js Refactor content deletion 2016-03-22 10:10:09 -05:00
tempfile.js Add readThemes() utility to get a list of themes 2015-10-13 15:54:41 +02:00