diff options
author | Greg <gregory.mkv@gmail.com> | 2019-12-17 00:00:15 -0500 |
---|---|---|
committer | Greg <gregory.mkv@gmail.com> | 2019-12-17 00:00:15 -0500 |
commit | 68d50a7df028da78fb7d571f80e7ae7fb625782d (patch) | |
tree | 57e0b00950f10c0e8fae951ed1a22ee1711a0c30 | |
parent | b13315bdbd0a2105a94452968793e67a50e6a311 (diff) |
Fix failing tests
-rw-r--r-- | tests/cli.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/cli.rs b/tests/cli.rs index 20934b8..7b5d155 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -1,6 +1,6 @@ use anyhow::Result; -use assert_cmd::prelude::*; -use std::{io::prelude::*, process::Command}; +use assert_cmd::Command; +use std::io::prelude::*; fn sd() -> Command { Command::cargo_bin(env!("CARGO_PKG_NAME")).expect("Error invoking sd") @@ -43,8 +43,7 @@ fn replace_into_stdout() -> Result<()> { #[test] fn stdin() -> Result<()> { sd().args(&["abc\\d+", ""]) - .with_stdin() - .buffer("abc123def") + .write_stdin("abc123def") .assert() .success() .stdout("def"); |