From 0d252ab9fd76b4e9407527ca5ff1b3f7faabd764 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 27 Jun 2013 09:19:37 -0700 Subject: [PATCH] Use parent directory as resource path --- tasks/test-task.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/test-task.coffee b/tasks/test-task.coffee index 857f098f3..0b6f47c00 100644 --- a/tasks/test-task.coffee +++ b/tasks/test-task.coffee @@ -10,5 +10,6 @@ module.exports = (grunt) -> spawn cmd: 'pkill', args: ['Atom'], -> callback() commands.push (callback) -> atomBinary = path.join(grunt.config.get('atom.contentsDir'), 'MacOS', 'Atom') - spawn cmd: atomBinary, args: ['--test', "--resource-path=#{__dirname}"], (error) -> callback(error) + resourcePath = path.resolve(__dirname, '..') + spawn cmd: atomBinary, args: ['--test', "--resource-path=#{resourcePath}"], (error) -> callback(error) grunt.util.async.waterfall commands, (error) -> done(error)