summaryrefslogtreecommitdiffstats
path: root/tests/testsuite/directory.rs
diff options
context:
space:
mode:
authorKevin Song <chipbuster@users.noreply.github.com>2019-08-21 09:37:43 -0700
committerGitHub <noreply@github.com>2019-08-21 09:37:43 -0700
commitda86b4f8476221a513bde489f9fc119bb005f1be (patch)
tree1fe0a5ce0da2d07f3352749575dd2e681e877ed7 /tests/testsuite/directory.rs
parentfaa22806207c61c578fe5e302b65ae74b64c47be (diff)
fix: Failing Tests if home is a git directory (#214)
Diffstat (limited to 'tests/testsuite/directory.rs')
-rw-r--r--tests/testsuite/directory.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testsuite/directory.rs b/tests/testsuite/directory.rs
index beaa33282..702a6b516 100644
--- a/tests/testsuite/directory.rs
+++ b/tests/testsuite/directory.rs
@@ -12,6 +12,10 @@ use crate::common::{self, TestCommand};
fn home_directory() -> io::Result<()> {
let output = common::render_module("directory")
.arg("--path=~")
+ .use_config(toml::toml! { // Necessary if homedir is a git repo
+ [directory]
+ truncate_to_repo = false
+ })
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();