Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
refactor(config): use stdin instead of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed Jul 2, 2019
1 parent 03d7ea6 commit 0a85d50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use assert_cmd::prelude::*;
use std::env;
use std::fs;
use std::io::prelude::*;
use std::process::{Child, Command, Stdio};

Expand All @@ -23,6 +25,7 @@ fn config() -> Child {
.arg("config")
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.env("HOME", home_dir)
.spawn()
.unwrap()
}

0 comments on commit 0a85d50

Please sign in to comment.