We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 919e726 commit 7da0649Copy full SHA for 7da0649
1 file changed
tests/unit/test_doubles_test.sh
@@ -220,8 +220,8 @@ function test_unsuccessful_spy_nth_called_with_invalid_index() {
220
function test_spy_with_exit_code_returns_specified_exit_code() {
221
bashunit::spy ps 1
222
223
- ps
224
- local actual_exit_code=$?
+ local actual_exit_code=0
+ ps || actual_exit_code=$?
225
226
assert_have_been_called ps
227
assert_same "1" "$actual_exit_code"
0 commit comments