mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use @resourcePath when resource path of specs doesn't exist.
People may put atom under places other than ~/github/atom and wants to run specs.
This commit is contained in:
@@ -241,6 +241,9 @@ class AtomApplication
|
||||
@configWindow = null
|
||||
|
||||
runSpecs: (exitWhenDone, resourcePath) ->
|
||||
if resourcePath isnt @resourcePath and not fs.existsSync(resourcePath)
|
||||
resourcePath = @resourcePath
|
||||
|
||||
bootstrapScript = 'spec-bootstrap'
|
||||
isSpec = true
|
||||
new AtomWindow({bootstrapScript, resourcePath, exitWhenDone, isSpec})
|
||||
|
||||
Reference in New Issue
Block a user