Set core/editor config defaults in spec helper

This commit is contained in:
Kevin Sawicki 2013-11-11 11:04:24 -08:00
parent e31dbfd7d6
commit b801c3ce56

View File

@ -77,6 +77,8 @@ beforeEach ->
config = new Config config = new Config
resourcePath: window.resourcePath resourcePath: window.resourcePath
configDirPath: atom.getConfigDirPath() configDirPath: atom.getConfigDirPath()
config.setDefaults('core', RootView.configDefaults)
config.setDefaults('editor', Editor.configDefaults)
spyOn(config, 'load') spyOn(config, 'load')
spyOn(config, 'save') spyOn(config, 'save')
config.set "editor.fontFamily", "Courier" config.set "editor.fontFamily", "Courier"