diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-10-12 16:46:52 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-11-02 18:19:30 +0100 |
commit | 966eb6d045f92370131e0c338fa6d6b89b66ad0f (patch) | |
tree | ecdc20f7738484da084c0d8b32918268db54ff74 /tests | |
parent | 409660b07ba75e6773441a630f9c26eba9dea1da (diff) |
Add test: check whether imag-init creates store path
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ui/src/imag_init.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/src/imag_init.rs b/tests/ui/src/imag_init.rs index 0c3c6cab..2ef6aec3 100644 --- a/tests/ui/src/imag_init.rs +++ b/tests/ui/src/imag_init.rs @@ -79,3 +79,18 @@ fn test_init_creates_default_config() { assert_eq!(orig, created); }); } + +#[test] +fn test_init_creates_store_directory() { + crate::setup_logging(); + let imag_home = crate::imag::make_temphome(); + call(&imag_home); + let store_path = { + let mut path = imag_home.path().to_path_buf(); + path.push("store"); + path + }; + + assert!(store_path.exists(), "imag store path does not exist"); +} + |