fix: Failing Tests if home is a git directory (#214)

This commit is contained in:
Kevin Song
2019-08-21 09:37:43 -07:00
committed by GitHub
parent faa2280620
commit da86b4f847
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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();