💄 Resolve atom.sh once

This commit is contained in:
Kevin Sawicki
2013-10-11 08:58:51 -07:00
parent 483f63ab05
commit a79f36cbf2

View File

@@ -9,11 +9,12 @@ module.exports = (grunt) ->
grunt.registerTask 'run-specs', 'Run the specs', ->
passed = true
done = @async()
atomPath = path.resolve('atom.sh')
queue = async.queue (packagePath, callback) ->
options =
cmd: path.resolve('node_modules/.bin/apm')
args: ['test', '-p', path.resolve('atom.sh')]
args: ['test', '-p', atomPath]
opts:
cwd: packagePath
spawn options, (error, results, code) ->