Fix copy/paste typos in help.bats.

This commit is contained in:
William Melody 2016-01-25 17:21:20 -08:00
parent 8faa7a0ab6
commit 810e407c9e
1 changed files with 3 additions and 3 deletions

View File

@ -23,17 +23,17 @@ export _HELP_HEADER
[[ $(IFS=$'\n'; echo "${lines[*]:0:5}") == "$_HELP_HEADER" ]] [[ $(IFS=$'\n'; echo "${lines[*]:0:5}") == "$_HELP_HEADER" ]]
} }
@test "\`notes -h\` prints default help." { @test "\`hosts -h\` prints default help." {
run "$_HOSTS" -h run "$_HOSTS" -h
[[ $(IFS=$'\n'; echo "${lines[*]:0:5}") == "$_HELP_HEADER" ]] [[ $(IFS=$'\n'; echo "${lines[*]:0:5}") == "$_HELP_HEADER" ]]
} }
@test "\`notes --help\` prints default help." { @test "\`hosts --help\` prints default help." {
run "$_HOSTS" --help run "$_HOSTS" --help
[[ $(IFS=$'\n'; echo "${lines[*]:0:5}") == "$_HELP_HEADER" ]] [[ $(IFS=$'\n'; echo "${lines[*]:0:5}") == "$_HELP_HEADER" ]]
} }
@test "\`notes help help\` prints \`help\` subcommand usage." { @test "\`hosts help help\` prints \`help\` subcommand usage." {
run "$_HOSTS" help help run "$_HOSTS" help help
_expected="$( _expected="$(
cat <<HEREDOC cat <<HEREDOC