Skip to content

Commit 863de41

Browse files
Minor test improvements
1 parent a818553 commit 863de41

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/help_tests.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,11 @@ fn show_subcommands_with_category_name_and_help() -> Result<(), Box<dyn std::err
4141

4242
Ok(())
4343
}
44+
45+
#[test]
46+
fn shows_subcommand_specific_info_with_help() -> Result<(), Box<dyn std::error::Error>> {
47+
let args = ["declare", "queue", "--help"];
48+
run_succeeds(args).stdout(predicate::str::contains("Usage:"));
49+
50+
Ok(())
51+
}

0 commit comments

Comments
 (0)