summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg <gregory.mkv@gmail.com>2019-12-17 00:00:15 -0500
committerGreg <gregory.mkv@gmail.com>2019-12-17 00:00:15 -0500
commit68d50a7df028da78fb7d571f80e7ae7fb625782d (patch)
tree57e0b00950f10c0e8fae951ed1a22ee1711a0c30
parentb13315bdbd0a2105a94452968793e67a50e6a311 (diff)
Fix failing tests
-rw-r--r--tests/cli.rs7
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");