diff options
author | Tilmann Meyer <allescrafterx@gmail.com> | 2020-08-07 21:13:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 15:13:12 -0400 |
commit | 88b603be38aa623705e56e572eb174ae4d94107c (patch) | |
tree | 05033ec2adf013a55d3836a3f739e856880b5055 /src/bug_report.rs | |
parent | 8b0f589486e617c4fd52d870839a94d6e78f7379 (diff) |
test: introduce env variable mocking (#1490)
Diffstat (limited to 'src/bug_report.rs')
-rw-r--r-- | src/bug_report.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bug_report.rs b/src/bug_report.rs index 6735f2442..d9104ab1c 100644 --- a/src/bug_report.rs +++ b/src/bug_report.rs @@ -1,5 +1,6 @@ use crate::utils::exec_cmd; +use clap::crate_version; use std::fs; use std::path::PathBuf; @@ -254,5 +255,6 @@ mod tests { let config_path = get_config_path("bash"); assert_eq!("/test/home/.bashrc", config_path.unwrap().to_str().unwrap()); + env::remove_var("HOME"); } } |