0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/test/unit
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
..
apps_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
bootstrap_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
config_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
errorHandling_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
filters_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
frontend_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
mail_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
middleware_spec.js Wire permmissions for notifications, mail and tags 2014-07-17 16:44:09 +01:00
permissions_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
server_helpers_index_spec.js Merge pull request #3367 from jaswilli/issue-3161 2014-07-23 04:47:19 +01:00
server_helpers_template_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
server_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
showdown_client_integrated_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
showdown_ghostGFM_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
showdown_ghostimagepreview_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00
storage_localfilesystem_spec.js This aims to speed up both the ghost application and tests by 2014-07-22 22:37:44 -04:00
xmlrpc_spec.js Cleaning up the unit tests 2014-06-18 00:11:35 +01:00