mirror of
https://github.com/rust-lang/cargo
synced 2024-08-25 10:35:53 +00:00
test: Add reference link test
This commit is contained in:
parent
d7ffef777a
commit
f781d2df86
|
@ -522,3 +522,11 @@ fn new_with_blank_email() {
|
|||
let contents = fs::read_to_string(paths::root().join("foo/Cargo.toml")).unwrap();
|
||||
assert!(contents.contains(r#"authors = ["Sen"]"#), contents);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn new_with_reference_link() {
|
||||
cargo_process("new foo").env("USER", "foo").run();
|
||||
|
||||
let contents = fs::read_to_string(paths::root().join("foo/Cargo.toml")).unwrap();
|
||||
assert!(contents.contains("# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html"))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue