Skip to content

Commit

Permalink
test: Add reference link test
Browse files Browse the repository at this point in the history
  • Loading branch information
k-nasa committed May 1, 2019
1 parent d7ffef7 commit f781d2d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testsuite/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}

0 comments on commit f781d2d

Please sign in to comment.