From a4fe341c2f15c6375c512f3cb365278b1dff8d32 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Tue, 29 Jul 2014 22:29:13 +0000 Subject: [PATCH] Ghost instance not needed in update check test Refs #3424, Refs #3444 - API and test suite refactoring triggered a conflict with the way update_check_spec.js was written. Using a running copy of Ghost is no longer needed in those tests so it was removed. --- core/test/integration/update_check_spec.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/core/test/integration/update_check_spec.js b/core/test/integration/update_check_spec.js index e92d18b53a..bdc8c1797d 100644 --- a/core/test/integration/update_check_spec.js +++ b/core/test/integration/update_check_spec.js @@ -9,26 +9,14 @@ var testUtils = require('../utils'), packageInfo = require('../../../package'), ghost = require('../../../core'), config = rewire('../../../core/server/config'), - defaultConfig = require('../../../config.example')[process.env.NODE_ENV], updateCheck = rewire('../../server/update-check'); describe('Update Check', function () { var environmentsOrig; - before(function (done) { + before(function () { environmentsOrig = updateCheck.__get__('allowedCheckEnvironments'); updateCheck.__set__('allowedCheckEnvironments', ['development', 'production', 'testing']); - - _.extend(config, defaultConfig); - - ghost({config: config.paths.config}).then(function () { - return testUtils.clearData(); - }).then(function () { - done(); - }).catch(function (err) { - console.log('Update Check before error', err); - throw new Error(err); - }); }); after(function () {