cargo/tests/testsuite/fetch.rs
Alex Crichton 1e6828485e cargo fmt
2018-03-14 17:48:23 -07:00

27 lines
539 B
Rust

use cargotest::support::{execs, project};
use hamcrest::assert_that;
#[test]
fn no_deps() {
let p = project("foo")
.file(
"Cargo.toml",
r#"
[package]
name = "foo"
authors = []
version = "0.0.1"
"#,
)
.file(
"src/main.rs",
r#"
mod a; fn main() {}
"#,
)
.file("src/a.rs", "")
.build();
assert_that(p.cargo("fetch"), execs().with_status(0).with_stdout(""));
}