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:
Cheng Zhao
2013-06-19 14:01:24 +08:00
parent e0f806f0fb
commit 95f43917a4

View File

@@ -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})