blob: a6ced09f9308b1484075f87ddd730a3c77ba26d0 [file] [log] [blame]
extern crate cargotest;
extern crate hamcrest;
use cargotest::support::{project, execs};
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", "");
assert_that(p.cargo_process("fetch"),
execs().with_status(0).with_stdout(""));
}