From 3ce7b9d251f421bb45e5a3b1a34f44238154b44b Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Tue, 20 Aug 2013 21:28:19 +0100 Subject: [PATCH] Moving misplaced test file --- core/test/{ghost => unit}/plugins_spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename core/test/{ghost => unit}/plugins_spec.js (96%) diff --git a/core/test/ghost/plugins_spec.js b/core/test/unit/plugins_spec.js similarity index 96% rename from core/test/ghost/plugins_spec.js rename to core/test/unit/plugins_spec.js index c9cac95206..ee691c21bc 100644 --- a/core/test/ghost/plugins_spec.js +++ b/core/test/unit/plugins_spec.js @@ -1,4 +1,4 @@ -/*globals describe, beforeEach, it*/ +/*globals describe, beforeEach, before, it*/ var _ = require("underscore"), when = require('when'), should = require('should'), @@ -7,7 +7,7 @@ var _ = require("underscore"), helpers = require('./helpers'), plugins = require('../../server/plugins'), GhostPlugin = plugins.GhostPlugin, - loader = require('../../server/plugins/loader') + loader = require('../../server/plugins/loader'); describe('Plugins', function () { @@ -55,13 +55,13 @@ describe('Plugins', function () { unregisterMock = sinon.stub(fakeGhost, "unregisterFilter"); loader.installPluginByName("FancyFirstChar", fakeGhost).then(function (loadedPlugin) { - + should.exist(loadedPlugin); - + installMock.called.should.equal(true); loadedPlugin.activate(fakeGhost); - + // Registers the filter registerMock.called.should.equal(true); @@ -98,7 +98,7 @@ describe('Plugins', function () { return api.settings.read("installedPlugins").then(function (setting) { should.exist(setting); - setting.value.should.equal('["FancyFirstChar"]') + setting.value.should.equal('["FancyFirstChar"]'); done(); });