       @checkForUpdates()
 
     if test
-      @runSpecs(true, @resourcePath)
+      @runSpecs({exitWhenDone: true, @resourcePath})
     else if pathsToOpen.length > 0
       @openPaths({pathsToOpen, pidToKillWhenClosed, newWindow})
     else

          label: 'Run Specs'
          accelerator: 'Command+MacCtrl+Alt+S'
          click: =>
            @runSpecs(false, global.devResourcePath)
        }
        { type: 'separator' }
        { label: 'Quit', accelerator: 'Command+Q', click: -> app.quit() }

    @configWindow.browserWindow.on 'destroyed', =>
      @configWindow = null

  runSpecs: ({exitWhenDone, resourcePath}) ->
    if resourcePath isnt @resourcePath and not fs.existsSync(resourcePath)
      resourcePath = @resourcePath

