Find Way to Mock Out Util Without Code Change #29
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
question
Further information is requested
Description
Currently the only way I've found to mock out util (constants, globals, helper functions, etc) when running shellspec tests is to add the bellow block to the top of the primary shell script:
Then use
inScriptSource()
in place of.
when sourcingmain.sh
.Example
See the
output()
function (src/shell/functions/output/output.sh).DOD
Mock out util contents without having to change CUT.
The text was updated successfully, but these errors were encountered: