aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli.rs')
-rw-r--r--tests/cli.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cli.rs b/tests/cli.rs
index 8c88c93..7c3c972 100644
--- a/tests/cli.rs
+++ b/tests/cli.rs
@@ -32,10 +32,10 @@ fn version_shows() -> Result<(), Error> {
#[test]
/// Print completions and exit.
fn print_completions() -> Result<(), Error> {
- for shell in &Shell::variants() {
+ for shell in Shell::arg_values() {
Command::cargo_bin("miniserve")?
.arg("--print-completions")
- .arg(&shell)
+ .arg(shell.get_name())
.assert()
.success();
}