diff --git a/t/03-exact_size_off.test b/t/03-exact_size_off.test index cdc61ec..6bf7bcc 100644 --- a/t/03-exact_size_off.test +++ b/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) diff --git a/t/04-hasindex-html.test b/t/04-hasindex-html.test index 69ac222..13a0700 100644 --- a/t/04-hasindex-html.test +++ b/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 diff --git a/t/06-hide_parent.test b/t/06-hide_parent.test index 494c958..9e3ad6b 100644 --- a/t/06-hide_parent.test +++ b/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;' diff --git a/t/07-directory-first.test b/t/07-directory-first.test index 82c37cc..a7f3080 100644 --- a/t/07-directory-first.test +++ b/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} diff --git a/t/07-show_dotfiles.test b/t/07-show_dotfiles.test index 6b56410..0ef5529 100644 --- a/t/07-show_dotfiles.test +++ b/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;' diff --git a/t/08-local-footer.test b/t/08-local-footer.test index 6d6318b..09b1e6c 100644 --- a/t/08-local-footer.test +++ b/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 diff --git a/t/09-local-header.test b/t/09-local-header.test index 455b966..8b101b1 100644 --- a/t/09-local-header.test +++ b/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 diff --git a/t/10-local-headerfooter.test b/t/10-local-headerfooter.test index 6adfb45..739fcd6 100644 --- a/t/10-local-headerfooter.test +++ b/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 diff --git a/t/11-local-footer-nested.test b/t/11-local-footer-nested.test index 0530853..ce90d20 100644 --- a/t/11-local-footer-nested.test +++ b/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 local; diff --git a/t/12-local-footer-nested.test b/t/12-local-footer-nested.test index 7c0aef7..3ec0e6b 100644 --- a/t/12-local-footer-nested.test +++ b/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. --