cargo/tests/test_cargo_version.rs
Alex Crichton 8cce8996be Remove all subcommand executables
This commit removes all distributed executables except for `cargo`. All
builtin subcommands are implemented through library calls, and the fallback
methods are retained to maintain extensability through new subcommands.

Closes #393
2014-08-26 18:25:28 -07:00

14 lines
283 B
Rust

use support::{project, execs};
use hamcrest::assert_that;
use cargo;
fn setup() {}
test!(simple {
let p = project("foo");
assert_that(p.cargo_process("version"),
execs().with_status(0).with_stdout(format!("{}\n",
cargo::version()).as_slice()));
})