Skip to content

Commit f781d2d

Browse files
committed
test: Add reference link test
1 parent d7ffef7 commit f781d2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/testsuite/new.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,3 +522,11 @@ fn new_with_blank_email() {
522522
let contents = fs::read_to_string(paths::root().join("foo/Cargo.toml")).unwrap();
523523
assert!(contents.contains(r#"authors = ["Sen"]"#), contents);
524524
}
525+
526+
#[test]
527+
fn new_with_reference_link() {
528+
cargo_process("new foo").env("USER", "foo").run();
529+
530+
let contents = fs::read_to_string(paths::root().join("foo/Cargo.toml")).unwrap();
531+
assert!(contents.contains("# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html"))
532+
}

0 commit comments

Comments
 (0)