Skip to content

Commit 8230096

Browse files
committed
test: add show_active_toolchain_with_verbose
1 parent 5a39089 commit 8230096

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/cli-rustup.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,22 @@ fn show_active_toolchain() {
10821082
});
10831083
}
10841084

1085+
#[test]
1086+
fn show_active_toolchain_with_verbose() {
1087+
setup(&|config| {
1088+
expect_ok(config, &["rustup", "default", "nightly"]);
1089+
expect_ok_ex(
1090+
config,
1091+
&["rustup", "show", "active-toolchain", "--verbose"],
1092+
for_host!(
1093+
r"nightly-{0} (default) - 1.3.0 (hash-nightly-2)
1094+
"
1095+
),
1096+
r"",
1097+
);
1098+
});
1099+
}
1100+
10851101
#[test]
10861102
fn show_active_toolchain_with_override() {
10871103
setup(&|config| {

0 commit comments

Comments
 (0)