1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/spectre-cli/src/main.rs b/spectre-cli/src/main.rs
index 25e46db8d1e660994c5b6463228e959e8a0e40e5..b88aef01f17e23658b2ad5190adecff70fe535a5 100644
--- a/spectre-cli/src/main.rs
+++ b/spectre-cli/src/main.rs
@@ -203,7 +203,7 @@ }
#[test]
fn test_default_values() {
- let args = Args::parse_from(&["spectre", "example.com"]);
+ let args = Args::parse_from(&["spectre", "--username", "example", "example.com"]);
assert_eq!(args.base, "com.lyndir.masterpassword");
assert_eq!(args.counter, 1);
assert!(!args.print);
@@ -211,7 +211,7 @@ }
#[test]
fn test_with_site() {
- let args = Args::parse_from(&["spectre", "example.com"]);
+ let args = Args::parse_from(&["spectre", "--username", "example", "example.com"]);
assert_eq!(args.site, "example.com".to_string());
}
|