2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/core
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
..
client@90706d0b38 Updated Ghost-Admin to 1.9.1 2017-09-26 14:49:00 +01:00
server 🐛 Fixed returning roles for the public user resource (#9039) 2017-09-26 15:43:21 +01:00
test Added role-specifics to post API tests (#9058) 2017-09-26 16:50:26 +02:00
index.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00