Skip to content

Commit

Permalink
remove deprecated dependency assert_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
andjo403 committed Dec 14, 2018
1 parent 66c98db commit 836562b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 46 deletions.
36 changes: 0 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,4 @@ bytecount = "0.4"
rustc-workspace-hack = "1.0.0"

[dev-dependencies]
assert_cli = "0.6"
lazy_static = "1.0.0"
15 changes: 6 additions & 9 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

extern crate assert_cli;

use std::collections::{HashMap, HashSet};
use std::env;
use std::fs;
Expand Down Expand Up @@ -973,11 +971,10 @@ fn rustfmt() -> PathBuf {
#[test]
fn verify_check_works() {
let temp_file = make_temp_file("temp_check.rs");
assert_cli::Assert::command(&[
rustfmt().to_str().unwrap(),
"--check",
temp_file.path.to_str().unwrap(),
])
.succeeds()
.unwrap();

Command::new(rustfmt().to_str().unwrap())
.arg("--check")
.arg(temp_file.path.to_str().unwrap())
.status()
.expect("run with check option failed");
}

0 comments on commit 836562b

Please sign in to comment.