Use test-runner.sh instead of homegrown test.sh

This commit is contained in:
2014-05-26 13:44:08 +01:00
parent 47ce28bba6
commit f3e0f666cb
21 changed files with 35 additions and 42 deletions

19
test/__stub_clean.test.sh Executable file
View File

@@ -0,0 +1,19 @@
#! /usr/bin/env bash
source "test-helper.sh"
#
# __stub_clean() tests.
#
# Removes unsets stub call list, removes stub from index
STUB_INDEX=("uname=0" "top=1")
STUB_0_CALLS=("<none>" "-r" "-r -a")
STUB_1_CALLS=("-h")
__stub_clean "uname"
assert 'echo ${STUB_INDEX[@]}' "top=1"
assert 'echo ${STUB_INDEX[0]}' "top=1"
assert 'echo ${STUB_0_CALLS[@]}' ""
# End of tests.
assert_end "__stub_clean()"