forked from diesel-rs/diesel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompletion_generation.rs
More file actions
37 lines (25 loc) · 947 Bytes
/
Copy pathcompletion_generation.rs
File metadata and controls
37 lines (25 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use support::project;
#[test]
fn can_generate_deprecated_bash_completion() {
let p = project("migration_redo").build();
let result = p.command("bash-completion").run();
assert!(result.is_success(), "Result was unsuccessful {:?}", result);
}
#[test]
fn can_generate_bash_completion() {
let p = project("migration_redo").build();
let result = p.command("completions").arg("bash").run();
assert!(result.is_success(), "Result was unsuccessful {:?}", result);
}
#[test]
fn can_generate_fish_completion() {
let p = project("migration_redo").build();
let result = p.command("completions").arg("fish").run();
assert!(result.is_success(), "Result was unsuccessful {:?}", result);
}
#[test]
fn can_generate_zsh_completion() {
let p = project("migration_redo").build();
let result = p.command("completions").arg("zsh").run();
assert!(result.is_success(), "Result was unsuccessful {:?}", result);
}