diff --git a/src/atom-application.coffee b/src/atom-application.coffee index d5ab72786..cb1c41963 100644 --- a/src/atom-application.coffee +++ b/src/atom-application.coffee @@ -55,7 +55,7 @@ class AtomApplication @checkForUpdates() if test - @runSpecs(true) + @runSpecs(true, @resourcePath) else if pathsToOpen.length > 0 @openPaths(pathsToOpen, pidToKillWhenClosed, newWindow) else @@ -98,7 +98,12 @@ class AtomApplication { label: 'Hide Others', accelerator: 'Command+Shift+H', selector: 'hideOtherApplications:' } { label: 'Show All', selector: 'unhideAllApplications:' } { type: 'separator' } - { label: 'Run Specs', accelerator: 'Command+MacCtrl+Alt+S', click: => @runSpecs() } + { + label: 'Run Specs' + accelerator: 'Command+MacCtrl+Alt+S' + click: => + @runSpecs(false, path.join(global.homeDir, 'github', 'atom')) + } { type: 'separator' } { label: 'Quit', accelerator: 'Command+Q', click: -> app.quit() } ] @@ -235,12 +240,10 @@ class AtomApplication @configWindow.browserWindow.on 'destroyed', => @configWindow = null - runSpecs: (exitWhenDone) -> - specWindow = new AtomWindow - bootstrapScript: 'spec-bootstrap' - resourcePath: path.join(global.homeDir, 'github', 'atom') - exitWhenDone: exitWhenDone - isSpec: true + runSpecs: (exitWhenDone, resourcePath) -> + bootstrapScript = 'spec-bootstrap' + isSpec = true + new AtomWindow({bootstrapScript, resourcePath, exitWhenDone, isSpec}) promptForPath: -> pathsToOpen = dialog.showOpenDialog title: 'Open', properties: ['openFile', 'openDirectory', 'multiSelections', 'createDirectory'] diff --git a/src/packages/wrap-guide/spec/wrap-guide-spec.coffee b/src/packages/wrap-guide/spec/wrap-guide-spec.coffee index 59ffcd2a5..a8d03ff04 100644 --- a/src/packages/wrap-guide/spec/wrap-guide-spec.coffee +++ b/src/packages/wrap-guide/spec/wrap-guide-spec.coffee @@ -1,7 +1,7 @@ RootView = require 'root-view' Editor = require 'editor' -describe "WrapGuide", -> +fdescribe "WrapGuide", -> [editor, wrapGuide] = [] beforeEach ->