Update packageDirPaths on new config instance

This commit is contained in:
Kevin Sawicki 2013-09-26 10:17:50 -07:00
parent c3e462db00
commit 22f2d4c1c5

View File

@ -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"