0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/unit
Katharina Irrgang 0fbf5e12b8 Tests: Sort out usage of content folder in tests (#9034)
no issue

- use latest casper in test fixtures
- never ever use the root content folder for tests
- if we start/fork Ghost for the tests, we use a tmp folder
- this change is required to for an upcoming PR (#9029)
- i've added a TODO to create a helper fn for stopping the ghost server, so we can cleanup the tmp folder

* Care about TODO's in our channels spec

- add the 1.4 compatible casper theme to fixtures
- so as soon as you start Ghost, the test env will provide the content folder in /tmp something with the activated latest default casper and the 1.4 compatible old casper
- there are tests which tests different logici e.g. pagination
- therefor we need a different theme, we are simply using our 1.4 casper
2017-09-21 15:05:35 +01:00
..
adapters 🐛 Fixed post scheduling (#8976) 2017-09-05 19:23:11 +01:00
api 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
auth Removed defunct Ghost OAuth code (#9014) 2017-09-18 13:01:58 +01:00
config fix(config): cleanup absolute path config function (#8641) 2017-07-06 00:04:18 +02:00
controllers/frontend 🐛 Fixed channel context to be based on res.locals (#8910) 2017-08-16 11:06:30 +01:00
data/importer 🎨 Support LTS imports (#8498) 2017-06-04 11:53:00 +02:00
mail Improved log output for welcome email error (#9016) 2017-09-19 14:24:20 +01:00
metadata Refactor: fetch image dimensions from local file storage (#8900) 2017-09-05 14:13:22 +02:00
middleware 🐛 Fixed doubled query params for url/admin-url redirection 2017-09-14 07:55:14 +07:00
models/base 🎨 change last_login to last_seen (#8259) 2017-04-05 20:45:55 +01:00
models_plugins 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
server_helpers Tests: Stub image request for dimensions (#8973) 2017-09-05 16:24:04 +01:00
settings 🐛 fix settings cache (#8506) 2017-06-04 17:52:22 +07:00
sitemap 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
themes 🐛 Remove trailing slash for {{@blog.url}} (#8596) 2017-06-19 16:11:53 +02:00
utils Tests: Sort out usage of content folder in tests (#9034) 2017-09-21 15:05:35 +01:00
admin_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
api_utils_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
apps_filters_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
apps_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
errors_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
exporter_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
filters_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
ghost_sdk_spec.js 🐛 Fixed api url for the ghost sdk (#9013) 2017-09-18 16:28:22 +01:00
migration_fixture_utils_spec.js 📖 new default post content (#8548) 2017-06-08 16:36:14 +01:00
migration_spec.js Add ghost-backup client to trigger export (#8911) 2017-08-22 11:15:40 +01:00
permissions_spec.js 🐛 be able to serve locked users (#8711) 2017-07-20 12:45:13 +01:00
rss_spec.js 🦄 Channels: Stored config in res.locals not req (#8884) 2017-08-14 10:21:24 +07:00
server_helpers_index_spec.js 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
server_helpers_template_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
server_utils_spec.js 🎨 refactor the importer (#8473) 2017-05-23 17:18:13 +01:00
slack_spec.js 📖 new default post content (#8548) 2017-06-08 16:36:14 +01:00
social-urls_spec.js
utils_pipeline_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
validation_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
xmlrpc_spec.js 📖 new default post content (#8548) 2017-06-08 16:36:14 +01:00