0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server
Hannah Wolfe f489d7df72 xmlrpc + slack init() -> listen() & fixup tests
no issue

- changes xmlrcp & slack `init` function to be `listen`
- update the code to use `listen` instead of `init`
- changes the tests to make sure that event listeners are not wired up
- adds 100% test coverage

Since we added slack event listeners, the xmlrpc event tests have been throwing an error:
 > Unhandled rejection Error
See: http://puu.sh/phvjZ.png

This is because both xmlrpc & slack are listening to `post.published` events.
xmlrpc didn't require any extra stubbing, but the slack listener did
By turning the listeners off after the tests, we reset the environment to not impact the next event test

We probably need to do more work like this to improve the systems around event handling and
make them more robust
2016-06-09 15:38:19 +01:00
..
api Add CSV parser for csv read utility 2016-06-07 10:47:56 +01:00
apps Subscribers: Error Handling for adding subscribers 2016-05-11 12:55:29 +02:00
config Fixes #6935 - Let Bluebird know Promise is not runaway 2016-06-08 07:47:45 -06:00
controllers timezones: support permalinks based on current timezone 2016-05-20 18:14:19 +02:00
data xmlrpc + slack init() -> listen() & fixup tests 2016-06-09 15:38:19 +01:00
errors improvement: general fixes 2016-06-01 07:07:20 +02:00
events Make sure events gets initialized 2016-04-09 19:52:37 -05:00
helpers Guard for currentUrl being undefined in navigation 2016-06-07 20:10:20 +01:00
mail
middleware Move all middleware/app config to middleware 2016-06-07 17:24:08 +01:00
models Add token added event, update last_login 2016-06-09 09:17:06 +01:00
permissions improvement: general fixes 2016-06-01 07:07:20 +02:00
routes Subscribers: Model, API & CSV import/export 2016-05-11 10:28:10 +02:00
storage Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
translations Subscribers: Error message improvements 2016-05-12 17:37:45 +02:00
utils Add CSV parser for csv read utility 2016-06-07 10:47:56 +01:00
views move private-blogging functionality into an internal app 2016-04-11 08:58:41 -05:00
filters.js
ghost-server.js
i18n.js improvement: general fixes 2016-06-01 07:07:20 +02:00
index.js xmlrpc + slack init() -> listen() & fixup tests 2016-06-09 15:38:19 +01:00
overrides.js Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
update-check.js deps: bluebird@3.3.3 2016-03-01 15:17:20 -06:00