Browse Source

Tests: Fix typos in descriptions and messages

pull/145/head
Ryan Schmidt 3 years ago committed by Adrian Perez
parent
commit
b9ecd5bcb4
  1. 3
      t/03-exact_size_off.test
  2. 4
      t/04-hasindex-html.test
  3. 2
      t/06-hide_parent.test
  4. 6
      t/07-directory-first.test
  5. 2
      t/07-show_dotfiles.test
  6. 2
      t/08-local-footer.test
  7. 2
      t/09-local-header.test
  8. 2
      t/10-local-headerfooter.test
  9. 2
      t/11-local-footer-nested.test
  10. 2
      t/12-local-footer-nested.test

3
t/03-exact_size_off.test

@ -1,6 +1,7 @@
#! /bin/bash
cat <<---
We test if the output from using "fancyindex_exact_size off" looks sane
This test checks if the output from using "fancyindex_exact_size off"
looks sane.
--
nginx_start 'fancyindex_exact_size off;'
content=$(fetch)

4
t/04-hasindex-html.test

@ -1,8 +1,8 @@
#! /bin/bash
cat <<---
This test fetches the root directory served by Nginx, which has no index
file, and checks the output contains a few HTML elements know to exist in
a directory index.
file, and checks that the output contains a few HTML elements known to
exist in a directory index.
--
use pup
nginx_start

2
t/06-hide_parent.test

@ -1,6 +1,6 @@
#! /bin/bash
cat <<---
This test check the output using "fancyindex_hide_parent_dir on"
This test checks the output using "fancyindex_hide_parent_dir on".
--
use pup
nginx_start 'fancyindex_hide_parent_dir on;'

6
t/07-directory-first.test

@ -1,6 +1,6 @@
#! /bin/bash
cat <<---
This test check the output using "fancyindex_directories_first on"
This test checks the output using "fancyindex_directories_first on".
--
use pup
@ -23,7 +23,7 @@ while read -r name ; do
;;
*d*)
echo "dir $name"
[[ "$cur_type" = f ]] && fail 'Directories should come before Files'
[[ "$cur_type" = f ]] && fail 'Directories should come before files'
cur_type=d
if [[ -z ${previous} ]] ; then
previous=${name}
@ -34,7 +34,7 @@ while read -r name ; do
;;
*f*)
echo "file $name"
[[ -z "$cur_type" ]] && fail 'Directories should come before Files'
[[ -z "$cur_type" ]] && fail 'Directories should come before files'
if [[ "$cur_type" = d ]] ; then
cur_type=f
previous=${name}

2
t/07-show_dotfiles.test

@ -1,6 +1,6 @@
#! /bin/bash
cat <<---
Test the option to show dotfiles.
This test checks the option to show dotfiles.
--
# Turn it on.
nginx_start 'fancyindex_show_dotfiles on;'

2
t/08-local-footer.test

@ -1,7 +1,7 @@
#! /bin/bash
cat <<---
This test checks that a local footer can be included with
"fancyindex_header ... local"
"fancyindex_header ... local".
--
use pup

2
t/09-local-header.test

@ -1,7 +1,7 @@
#! /bin/bash
cat <<---
This test checks that a local header can be included with
"fancyindex_header ... local"
"fancyindex_header ... local".
--
use pup

2
t/10-local-headerfooter.test

@ -1,7 +1,7 @@
#! /bin/bash
cat <<---
This test checks that both a local header and footer can be included with
"fancyindex_{header,footer} ... local"
"fancyindex_{header,footer} ... local".
--
use pup

2
t/11-local-footer-nested.test

@ -1,6 +1,6 @@
#! /bin/bash
cat <<---
This test checks that local footers are correctly included in presence of
This test checks that local footers are correctly included in the presence of
directives in nested locations:
fancyindex_footer <one> local;

2
t/12-local-footer-nested.test

@ -1,7 +1,7 @@
#! /bin/bash
cat <<---
This test checks that the configuration file is properly parsed if there
is only one parameter passed to the fancyndex_header and fancyindex_footer
is only one parameter passed to the fancyindex_header and fancyindex_footer
configuration directives.
--

Loading…
Cancel
Save