summary refs log tree commit diff
path: root/tests/no_repo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/no_repo.rs')
-rw-r--r--tests/no_repo.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/no_repo.rs b/tests/no_repo.rs
deleted file mode 100644
index 247426c..0000000
--- a/tests/no_repo.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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"");
-}