diff options
| author | mo8it <mo8it@proton.me> | 2023-08-26 00:00:56 +0200 |
|---|---|---|
| committer | liv <shadows_withal@fastmail.com> | 2023-09-04 13:30:49 +0200 |
| commit | 362318a6e04a1ffa80fe85e1f4c1cf03686d1109 (patch) | |
| tree | da5263a8bf7f9754a0ee6223090dbe006db6aa75 /tests | |
| parent | 5a93f2a4f14d83d34aac69254262da7aaa5b752c (diff) | |
Adapt tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/integration_tests.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 4c236fd..d1694a3 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -97,7 +97,10 @@ fn run_single_test_no_filename() { .arg("run") .current_dir("tests/fixture/") .assert() - .code(1); + .code(2) + .stderr(predicates::str::contains( + "required arguments were not provided", + )); } #[test] @@ -125,9 +128,9 @@ fn reset_no_exercise() { .unwrap() .arg("reset") .assert() - .code(1) + .code(2) .stderr(predicates::str::contains( - "positional arguments not provided", + "required arguments were not provided", )); } |
