Skip to content

Commit 02794c4

Browse files
committed
fix: test_spy_commands_called_once_when_executing_a_script
1 parent b2bd5c2 commit 02794c4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/functional/doubles_test.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ function test_mock_ps_when_executing_a_sourced_function() {
1414
}
1515

1616
function test_spy_commands_called_once_when_executing_a_script() {
17-
skip "not working while executing commands outside a function" && return
18-
1917
spy ps
2018
spy awk
2119
spy head
2220

23-
./tests/functional/fixtures/doubles_script.sh
21+
bash ./tests/functional/fixtures/doubles_script.sh
2422

2523
assert_have_been_called_times 1 ps
2624
assert_have_been_called_times 1 awk

0 commit comments

Comments
 (0)