0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server
Hannah Wolfe 337713ce63 Refactor fixture use in tests
no issue

- Refactor all integration tests to specify and load ONLY the fixtures
  they require to run, rather than initialising the whole kit-and-kaboodle
  for every single test which takes FOREVER.
- Refactor the route tests to share a doAuth function, and also specify
  additional fixtures required
- Move import and export unit tests, which are actually integration tests
  (they touch the DB)
- Comment out most of the permissions unit tests for now as they need more
  stubs/mocks so as to not touch the DB

Still todo:

- prevent default DB initialisation in route tests, and specify all
  fixtures requires as per the integration tests
- fix up the unit/permissions_spec
2014-07-23 05:04:50 +01:00
..
api This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
apps This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
config This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
controllers This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
data Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
errors This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
helpers Merge pull request #3367 from jaswilli/issue-3161 2014-07-23 04:47:19 +01:00
middleware This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
models This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
permissions Add edit roles 2014-07-21 22:50:43 +02:00
routes This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
storage This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
utils Export 003 2014-07-19 22:38:21 +01:00
views Remove inline script from default.hbs 2014-07-21 20:00:54 +02:00
api.js Shims for deleted (refactored away) files 2014-01-09 09:21:09 -06:00
filters.js Implement filter context 2014-04-06 15:43:11 +00:00
index.js Merge pull request #3367 from jaswilli/issue-3161 2014-07-23 04:47:19 +01:00
mail.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
middleware.js Shims for deleted (refactored away) files 2014-01-09 09:21:09 -06:00
require-tree.js Error handling for require-tree 2014-03-25 22:38:48 +00:00
update-check.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
xmlrpc.js Add distinct error classes 2014-05-09 12:11:29 +02:00