Ghost/core/server/data
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
..
db Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
export Exporter cleanup & tests 2016-03-12 19:01:25 +00:00
import fix: ensure import works when user id is 0 2016-05-16 20:47:44 +02:00
importer Harvest server side strings 2015-12-19 12:12:16 +01:00
meta Don't clobber blog.logo in metadata 2016-05-18 19:21:45 +01:00
migration Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
schema Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
slack xmlrpc + slack init() -> listen() & fixup tests 2016-06-09 15:38:19 +01:00
validation Revert "Revert "Force UTC at process level"" 2016-06-03 09:06:18 +01:00
xml xmlrpc + slack init() -> listen() & fixup tests 2016-06-09 15:38:19 +01:00
timezones.json Timezone select list without DST 2016-06-09 10:35:22 +02:00