Skip to content

Commit 2a6cbd7

Browse files
committed
Add a test for passing --path to rust doc
1 parent 2d5a070 commit 2a6cbd7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/cli-rustup.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,3 +1390,17 @@ fn file_override_with_target_info() {
13901390
);
13911391
});
13921392
}
1393+
1394+
#[test]
1395+
fn docs_with_path() {
1396+
setup(&|config| {
1397+
expect_ok(config, &["rustup", "default", "stable"]);
1398+
1399+
let mut cmd = clitools::cmd(config, "rustup", &["doc", "--path"]);
1400+
clitools::env(config, &mut cmd);
1401+
let out = cmd.output().unwrap();
1402+
1403+
let stdout = String::from_utf8(out.stdout).unwrap();
1404+
assert!(stdout.contains("share/doc/rust/html"));
1405+
});
1406+
}

0 commit comments

Comments
 (0)