     @configWindow.browserWindow.on 'destroyed', =>
       @configWindow = null
 
-  runSpecs: (exitWhenDone, resourcePath) ->
+  runSpecs: ({exitWhenDone, resourcePath}) ->
     if resourcePath isnt @resourcePath and not fs.existsSync(resourcePath)
       resourcePath = @resourcePath
 

      @checkForUpdates()

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

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