1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-01 01:04:00 +00:00

fix: Fix compilation on NixOS with sandboxing (#164)

This commit is contained in:
Bruno Bigras 2019-08-16 15:01:09 -04:00 committed by Matan Kushner
parent 5ad07bf2d9
commit 7124e353db

View File

@ -72,11 +72,11 @@ fn root_directory() -> io::Result<()> {
#[test]
fn directory_in_root() -> io::Result<()> {
let output = common::render_module("directory")
.arg("--path=/usr")
.arg("--path=/etc")
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("in {} ", Color::Cyan.bold().paint("/usr"));
let expected = format!("in {} ", Color::Cyan.bold().paint("/etc"));
assert_eq!(expected, actual);
Ok(())
}