Skip to content

Commit

Permalink
test: Add tests for custom file name
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Feb 18, 2022
1 parent 9cbaca1 commit 1d39064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gpg/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ mod tests {
.is_ok());
let key_id = keys.get(&KeyType::Public).unwrap()[1].get_id();
assert!(context.get_key(KeyType::Public, key_id.clone()).is_ok());
context.config.output_file = String::from("{query}-{type}.{ext}");
assert_eq!(
context.config.output_dir.join(String::from("sec_0x0.asc")),
context.config.output_dir.join(String::from("0x0-sec.asc")),
context
.get_output_file(KeyType::Secret, vec![String::from("0x0")])
.unwrap()
Expand Down

0 comments on commit 1d39064

Please sign in to comment.