summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc/src/gnupg.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipc/src/gnupg.rs b/ipc/src/gnupg.rs
index 3a84c93b..c7442769 100644
--- a/ipc/src/gnupg.rs
+++ b/ipc/src/gnupg.rs
@@ -883,4 +883,12 @@ mod tests {
let rt = tokio::runtime::Runtime::new()?;
rt.block_on(async_context())
}
+
+ #[test]
+ fn homedir() {
+ let ctx = Context::ephemeral()
+ .expect("can create an ephemeral context");
+ let homedir = ctx.homedir().expect("have homedir");
+ assert!(homedir.exists(), "{} should exist", homedir.display());
+ }
}