about summary refs log tree commit diff
path: root/src/test/mod.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2018-05-13 14:13:24 +1200
committerNick Cameron <ncameron@mozilla.com>2018-05-13 14:13:24 +1200
commit5d9f5aa05a668e7dfef87b46d89dad2884df9d41 (patch)
treebd5fe0300090045a7588ec18295ebff2038e64e8 /src/test/mod.rs
parent8396da188251ae8d6d2970a497ecdf07bf4ef04f (diff)
Replace `--write-mode` with `--emit`
cc #1976
Diffstat (limited to 'src/test/mod.rs')
-rw-r--r--src/test/mod.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs
index 631c8076ca7..4de69296e9f 100644
--- a/src/test/mod.rs
+++ b/src/test/mod.rs
@@ -912,18 +912,7 @@ fn verify_check_works() {
     let temp_file = make_temp_file("temp_check.rs");
     assert_cli::Assert::command(&[
         rustfmt().to_str().unwrap(),
-        "--write-mode=check",
-        temp_file.path.to_str().unwrap(),
-    ]).succeeds()
-        .unwrap();
-}
-
-#[test]
-fn verify_diff_works() {
-    let temp_file = make_temp_file("temp_diff.rs");
-    assert_cli::Assert::command(&[
-        rustfmt().to_str().unwrap(),
-        "--write-mode=diff",
+        "--check",
         temp_file.path.to_str().unwrap(),
     ]).succeeds()
         .unwrap();