Skip to content

Commit 362318a

Browse files
mo8itliv
authored and
liv
committed
Adapt tests
1 parent 5a93f2a commit 362318a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/integration_tests.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ fn run_single_test_no_filename() {
9797
.arg("run")
9898
.current_dir("tests/fixture/")
9999
.assert()
100-
.code(1);
100+
.code(2)
101+
.stderr(predicates::str::contains(
102+
"required arguments were not provided",
103+
));
101104
}
102105

103106
#[test]
@@ -125,9 +128,9 @@ fn reset_no_exercise() {
125128
.unwrap()
126129
.arg("reset")
127130
.assert()
128-
.code(1)
131+
.code(2)
129132
.stderr(predicates::str::contains(
130-
"positional arguments not provided",
133+
"required arguments were not provided",
131134
));
132135
}
133136

0 commit comments

Comments
 (0)