Ghost/core/test/unit
kirrg001 02abe3862e Use bookshelf-relations for Permission model: roles
refs https://github.com/TryGhost/Ghost/pull/9592

- we add bookshelf-relations step by step if we need it
- with https://github.com/TryGhost/Ghost/pull/9592 we have rewritten the test env to use Bookshelf
  - this is important for our new url service
  - because the service is listening on model updates and updates the urls based on the model events
- so with moving to Bookshelf, we need any easy way to add relations
  - the test env inserts test fixtures
  - it adds permissions and each permission get's roles attached
  - `models.Permission.add({roles: [...]})
2018-04-25 12:27:39 +02:00
..
adapters Use Promise support which was added in fs-extra 3.x 2017-12-13 20:57:11 +01:00
api Extended the API object validation 2018-04-05 18:51:58 +02:00
apps Moved default-cards app to lib/mobiledoc (#9341) 2017-12-14 14:44:01 +00:00
config fix(config): cleanup absolute path config function (#8641) 2017-07-06 00:04:18 +02:00
controllers Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
data Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
helpers Removed unnecessary type attribute in script tags (#9586) 2018-04-18 14:33:31 +02:00
lib Koenig - Output captions for image and embed cards 2018-03-14 18:21:30 +00:00
models Use bookshelf-relations for Permission model: roles 2018-04-25 12:27:39 +02:00
public Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00
services Renamed resources to taxonomies in default routes yaml file 2018-04-21 01:17:52 +02:00
web Extended ghost version utility (#9278) 2018-01-03 20:20:18 +01:00
filters_spec.js Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00