0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/test/utils/fixtures
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
..
app Load Apps Sandboxed 2014-02-04 15:46:31 -06:00
theme/partials Move API tests to /integration/ 2013-11-07 14:26:47 +01:00
data-generator.js Refactor fixture use in tests 2014-07-23 05:04:50 +01:00
example.js Load Apps Sandboxed 2014-02-04 15:46:31 -06:00
export-000.json Update import tool to be safe 2013-12-29 13:23:23 +00:00
export-001.json Rename 'plugins' to 'apps' 2014-01-21 15:45:27 +07:00
export-002.json Fix posts.html and posts.markdown field type 2014-01-15 14:29:23 +01:00
export-003.json Adds additional fields to apps schema. 2014-04-16 18:16:10 +02:00
test.hbs Move API tests to /integration/ 2013-11-07 14:26:47 +01:00