test base.plugin#pickfrom

This commit is contained in:
Ivan Povalyukhin
2015-03-29 17:21:28 -07:00
parent 839cf4429a
commit cbcdd66863
2 changed files with 21 additions and 2 deletions

View File

@@ -17,3 +17,12 @@ load ../../plugins/available/base.plugin
declare -r mask_ip=$(echo $output | tr -s '[0-9]' '?')
[[ $mask_ip == 'Your public IP is: ?.?.?.?' ]]
}
@test 'plugins base: pickfrom()' {
mkdir -p $BASH_IT_ROOT
stub_file="${BASH_IT_ROOT}/stub_file"
printf "l1\nl2\nl3" > $stub_file
run pickfrom $stub_file
assert_success
[[ $output == l? ]]
}