Skip to content

Commit 289a199

Browse files
author
Ken Price
committed
Have test create its own global config.
1 parent 81addc3 commit 289a199

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

test/runner.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ before(function() {
4545
})
4646
.then(function() {
4747
return fse.mkdir(local("home"));
48+
})
49+
.then(function() {
50+
return fse.writeFile(local("home", ".gitconfig"),
51+
"[user]\n name = John Doe\n email = johndoe@example.com");
4852
});
4953
});
5054

test/tests/config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ describe("Config", function() {
1515

1616
it("can get and set a global value", function() {
1717
var savedUserName;
18-
var dummyUserName = "Dummy O'Fakey";
1918

2019
function finallyFn() {
2120
return exec("git config --global user.name \"" + savedUserName + "\"");
2221
}
2322

24-
return exec("git config --global user.name \"" + dummyUserName + "\"")
23+
return exec("git config --global user.name")
2524
.then(function(userName) {
2625
savedUserName = userName.trim();
2726

0 commit comments

Comments
 (0)