From 6d83fd757b994f6a76eba7708ce2153c6e7884a0 Mon Sep 17 00:00:00 2001 From: mo8it Date: Sat, 26 Aug 2023 13:06:11 +0200 Subject: [PATCH] Adapt tests --- tests/integration_tests.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 1a729232..9ea028a5 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -97,7 +97,8 @@ fn run_single_test_no_filename() { .arg("run") .current_dir("tests/fixture/") .assert() - .code(1); + .code(1) + .stderr(predicates::str::contains("Error: expected `NAME`")); } #[test] @@ -126,9 +127,7 @@ fn reset_no_exercise() { .arg("reset") .assert() .code(1) - .stderr(predicates::str::contains( - "positional arguments not provided", - )); + .stderr(predicates::str::contains("Error: expected `NAME`")); } #[test]