diff --git a/tests/integration.rs b/tests/integration.rs index a43ce3565..19e851126 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -758,8 +758,8 @@ fn test_date_custom_format_supports_padding() { #[test] fn test_all_directory() { let dir = tempdir(); - dir.child("one").touch().unwrap(); - dir.child("two").touch().unwrap(); + dir.child("subdir-one").touch().unwrap(); + dir.child("subdir-two").touch().unwrap(); cmd() .arg("-a") @@ -767,7 +767,8 @@ fn test_all_directory() { .arg("--ignore-config") .arg(dir.path()) .assert() - .stdout(predicate::str::is_match(".").unwrap()); + .stdout(predicate::str::contains("subdir-one").not()) + .stdout(predicate::str::contains("subdir-two").not()); } #[test] @@ -777,8 +778,10 @@ fn test_multiple_files() { dir.child("two").touch().unwrap(); cmd() + .arg("--ignore-config") .arg(dir.path().join("one")) .arg(dir.path().join("two")) .assert() - .stdout(predicate::str::is_match(".").unwrap()); + .stdout(predicate::str::is_match("one").unwrap().count(1)) + .stdout(predicate::str::is_match("two").unwrap().count(1)); }