From 3e8de2d22d8ce74cc0f7ed99c03a71fb73c7b1ca Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 27 Jun 2013 09:18:22 -0700 Subject: [PATCH] Use config to retrieve contents directory --- tasks/test-task.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/test-task.coffee b/tasks/test-task.coffee index 69d0fb0ba..857f098f3 100644 --- a/tasks/test-task.coffee +++ b/tasks/test-task.coffee @@ -9,6 +9,6 @@ module.exports = (grunt) -> commands.push (callback) -> spawn cmd: 'pkill', args: ['Atom'], -> callback() commands.push (callback) -> - atomBinary = path.join(CONTENTS_DIR, 'MacOS', 'Atom') + atomBinary = path.join(grunt.config.get('atom.contentsDir'), 'MacOS', 'Atom') spawn cmd: atomBinary, args: ['--test', "--resource-path=#{__dirname}"], (error) -> callback(error) grunt.util.async.waterfall commands, (error) -> done(error)