From a591244f4467500b29ce1edb313e87dfd2e12f5b Mon Sep 17 00:00:00 2001 From: Christophe Porteneuve Date: Fri, 15 Nov 2013 08:35:56 +0100 Subject: More regular-case detached head (e.g. Travis) fixes --- test/getOptions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/getOptions.js b/test/getOptions.js index 4b830be..c1abc1f 100644 --- a/test/getOptions.js +++ b/test/getOptions.js @@ -167,7 +167,10 @@ var testGitBranch = function(sut, done){ var testGitBranchDetection = function(sut, done){ var localGit = ensureLocalGitContext(); sut(function(err, options) { - options.git.branch.should.equal(localGit.branch); + if (localGit.branch) + options.git.branch.should.equal(localGit.branch); + else + options.git.should.not.have.property('branch'); localGit.wrapUp(); done(); }); -- cgit v1.2.3