blob: 247426c168d7487ab108ab8290c473a6a77fd0bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// SPDX-License-Identifier: EUPL-1.2
// SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>
use std::process::Command;
#[test]
fn no_repo() {
let output = Command::new(env!("CARGO_BIN_EXE_git-girf"))
.current_dir("/var/empty")
.env_clear()
.output()
.expect("spawn");
assert_eq!(output.status.code(), Some(128));
assert_eq!(
output.stderr,
b"fatal: could not find repository from '.'\n"
);
assert_eq!(output.stdout, b"");
}
|