Ghost/core/test/integration/api
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_authentication_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_db_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_mail_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_notifications_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_posts_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_settings_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_slugs_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_tags_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_themes_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
api_upload_spec.js Integration tests use consistent teardown methods 2014-07-21 13:25:51 +01:00
api_users_spec.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00