mirror of
https://github.com/jimeh/stub.sh.git
synced 2026-02-19 13:46:40 +00:00
Changed increment in __stub_register() not to return non 0
This commit is contained in:
@@ -6,7 +6,7 @@ source "test-helper.sh"
|
||||
#
|
||||
|
||||
# Sets up stub index, stub call list, and adds stub to index.
|
||||
__stub_register "uname"
|
||||
__stub_register "uname" || assert_raises "false"
|
||||
__stub_register "top"
|
||||
assert 'echo ${STUB_INDEX[@]}' 'uname=0 top=1'
|
||||
assert 'echo ${STUB_INDEX[0]}' 'uname=0'
|
||||
|
||||
Reference in New Issue
Block a user