From 1172331ba4ef9c2aab4968c8248a811788600e89 Mon Sep 17 00:00:00 2001 From: "Arnaud (Arhuman) ASSAD" Date: Fri, 6 May 2022 10:01:35 +0200 Subject: [PATCH] Clean (fmt et remove useless code) integration test --- tests/integration.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index 72a569b..0e40e7f 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -3,16 +3,10 @@ mod integration { use regex::Regex; use std::process::Command; - use std::process::Output; - - static WITHOUT_ARGS_OUTPUT: &'static str = " USAGE: - carman [FLAGS] [OPTIONS] - For more information try --help - "; #[test] fn calling_carman_without_args_returns_result() { - let output = Command::new("./target/debug/carman") + let output = Command::new("./target/debug/carman") .output() .expect("failed to execute process"); let re = Regex::new(r"^Hello").unwrap(); @@ -21,7 +15,7 @@ mod integration { #[test] fn calling_carman_with_help_returns_usage() { - let output = Command::new("./target/debug/carman") + let output = Command::new("./target/debug/carman") .arg("--help") .output() .expect("failed to execute process"); @@ -30,5 +24,4 @@ mod integration { let re = Regex::new(r"--help").unwrap(); assert!(re.is_match(&String::from_utf8_lossy(&output.stdout))); } - }