test base.plugin#pickfrom
This commit is contained in:
@@ -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? ]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user