aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-07-18 02:28:25 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2022-07-18 02:28:25 +0000
commit873b640c3bc535ae9299f6b4d63babd54d68f342 (patch)
tree2f1000605774e17b5457403cebd3f65e56cbe3f1 /tests
parentMerge pull request #841 from svenstaro/dependabot/cargo/clap-3.2.11 (diff)
downloadminiserve-873b640c3bc535ae9299f6b4d63babd54d68f342.tar.gz
miniserve-873b640c3bc535ae9299f6b4d63babd54d68f342.zip
Bump deps
Diffstat (limited to 'tests')
-rw-r--r--tests/cli.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cli.rs b/tests/cli.rs
index c4fafc1..8ec03a8 100644
--- a/tests/cli.rs
+++ b/tests/cli.rs
@@ -1,7 +1,7 @@
mod fixtures;
use assert_cmd::prelude::*;
-use clap::{crate_name, crate_version};
+use clap::{crate_name, crate_version, ValueEnum};
use clap_complete::Shell;
use fixtures::Error;
use std::process::Command;
@@ -32,10 +32,10 @@ fn version_shows() -> Result<(), Error> {
#[test]
/// Print completions and exit.
fn print_completions() -> Result<(), Error> {
- for shell in Shell::possible_values() {
+ for shell in Shell::value_variants() {
Command::cargo_bin("miniserve")?
.arg("--print-completions")
- .arg(shell.get_name())
+ .arg(shell.to_string())
.assert()
.success();
}