diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-08-17 19:22:05 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-08-17 19:22:05 +0000 |
commit | 94a23a6839f3d4632c5abed1cb8846e4d295383e (patch) | |
tree | fbebc5db3366f3fdc70238ca08fbd769838fd063 /tests/no_repo.rs | |
parent | 256ac9c8eb8775acd1f812ee4345e13926181f0e (diff) | |
download | git-girf-94a23a6839f3d4632c5abed1cb8846e4d295383e.tar git-girf-94a23a6839f3d4632c5abed1cb8846e4d295383e.tar.gz git-girf-94a23a6839f3d4632c5abed1cb8846e4d295383e.tar.bz2 git-girf-94a23a6839f3d4632c5abed1cb8846e4d295383e.tar.lz git-girf-94a23a6839f3d4632c5abed1cb8846e4d295383e.tar.xz git-girf-94a23a6839f3d4632c5abed1cb8846e4d295383e.tar.zst git-girf-94a23a6839f3d4632c5abed1cb8846e4d295383e.zip |
Proof of concept
Diffstat (limited to 'tests/no_repo.rs')
-rw-r--r-- | tests/no_repo.rs | 20 |
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""); -} |