-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c66a58
commit cebb41c
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Make sure that the runner::clean_mocks() is being called and removing the mocks and spies | ||
# Make sure that the runner::clear_mocks() is being called and removing the mocks and spies | ||
# | ||
function test_runner_clean_mocks_1() { | ||
function test_runner_clear_mocks_1() { | ||
mock ls echo foo | ||
assert_is_mock ls | ||
|
||
spy ps | ||
assert_is_mock ps | ||
} | ||
|
||
function test_runner_clean_mocks_2() { | ||
function test_runner_clear_mocks_2() { | ||
assert_is_not_mock ls | ||
assert_is_not_mock ps | ||
} |