mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 19:22:33 +00:00
22 lines
475 B
Rust
22 lines
475 B
Rust
use support::{project, execs};
|
|
use hamcrest::assert_that;
|
|
|
|
fn setup() {}
|
|
|
|
test!(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(""));
|
|
});
|