From 80aa1a56b21edd95080c8472b847c5abcbe1fa53 Mon Sep 17 00:00:00 2001 From: Gerard Escalante Date: Wed, 12 Feb 2014 05:47:34 +0000 Subject: Fix tests again Make sure to add "fix" to all places where process.env is wiped clear, because of some node 0.8 oddity --- test/getOptions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/getOptions.js b/test/getOptions.js index fc33012..76691a3 100644 --- a/test/getOptions.js +++ b/test/getOptions.js @@ -5,7 +5,7 @@ var getBaseOptions = index.getBaseOptions; describe("getBaseOptions", function(){ beforeEach(function(){ - process.env = {}; + process.env = {PATH: process.env.PATH}; }); it ("should set service_job_id if it exists", function(done){ testServiceJobId(getBaseOptions, done); @@ -53,7 +53,7 @@ describe("getBaseOptions", function(){ describe("getOptions", function(){ beforeEach(function(){ - process.env = {}; + process.env = {PATH: process.env.PATH}; }); it ("should require a callback", function(done) { (function() { -- cgit v1.2.3