From 22f2d4c1c57f014c87e88330f5e7bf4683f9eb5c Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 26 Sep 2013 10:17:50 -0700 Subject: [PATCH] Update packageDirPaths on new config instance --- spec/spec-helper.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 51853d666..799c76e7e 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -18,7 +18,6 @@ atom.themes.loadBaseStylesheets() atom.themes.requireStylesheet '../static/jasmine' fixturePackagesPath = path.resolve(__dirname, './fixtures/packages') -config.packageDirPaths.unshift(fixturePackagesPath) keymap.loadBundledKeymaps() [bindingSetsToRestore, bindingSetsByFirstKeystrokeToRestore] = [] @@ -50,6 +49,7 @@ beforeEach -> # reset config before each spec; don't load or save from/to `config.json` window.config = new Config() + window.config.packageDirPaths.unshift(fixturePackagesPath) spyOn(config, 'load') spyOn(config, 'save') config.set "editor.fontFamily", "Courier"