test: Add reference link test

This commit is contained in:
k-nasa 2019-04-29 23:54:52 +09:00
parent d7ffef777a
commit f781d2df86

View file

@ -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"))
}