Ghost/core/test/utils
Hannah Wolfe f280fbcaaf Added role-specifics to post API tests (#9058)
refs #9043

- this is preparation for adding Author-specific tests later
  - the changes the posts_spec.js, so that all the tests are inside an "As Owner" describe block, similar to the users_spec.js
- Added new util for creating a specific post
  - This will make it easier to do routing tests on the post model in future
  - Our `index.js` file in test/utils really needs a bit of love 🙈
- Also added all the framework for author role tests in post_spec.js
- Added a single test, showing we can edit posts, including author_id
2017-09-26 16:50:26 +02:00
..
fixtures Tests: Sort out usage of content folder in tests (#9034) 2017-09-21 15:05:35 +01:00
mocks improvement: add mocks helper module for test env 2016-06-10 09:23:00 +02:00
api.js Primary tag (#8669) 2017-07-31 13:00:03 +04:00
assertions.js 🎉 🎨 Remove middleware/index.js (#7548) 2016-10-13 17:24:09 +02:00
configUtils.js 🔥 remove forceAdminSSL and urlSSL, add admin url (#7937) 2017-02-03 18:13:22 +00:00
fork.js Tests: Sort out usage of content folder in tests (#9034) 2017-09-21 15:05:35 +01:00
index.js Added role-specifics to post API tests (#9058) 2017-09-26 16:50:26 +02:00