diff --git a/scripts/test b/scripts/test index 637b039..9f6f814 100755 --- a/scripts/test +++ b/scripts/test @@ -20,7 +20,7 @@ # you may need to include it in quotes so it isn't expanded by the shell # _before_ executing the {{cmd}} command. -declare -r __GO_TEST_GLOB_ARGS=('--ignore' 'bats/*' 'tests' '.bats') +declare -r __GO_TEST_GLOB_ARGS=('--ignore' 'bats' 'tests' '.bats') _test_tab_completion() { local word_index="$1" diff --git a/tests/test.bats b/tests/test.bats index fe595a2..0872e07 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -20,7 +20,7 @@ teardown() { @test "$SUITE: tab complete flags, first-level tests and directories" { local expected=('--coverage' '--edit' '--list') expected+=($('./go' 'glob' '--complete' '5' \ - '--trim' '--ignore' 'bats/*' 'tests' '.bats')) + '--trim' '--ignore' 'bats' 'tests' '.bats')) [[ "${#expected[@]}" -ne 1 ]] run ./go test --complete 0 '' @@ -51,7 +51,7 @@ _trim_expected() { @test "$SUITE: no arguments after --list lists all tests" { local expected=( - $('./go' 'glob' '--trim' '--ignore' 'bats/*' 'tests' '.bats')) + $('./go' 'glob' '--trim' '--ignore' 'bats' 'tests' '.bats')) [[ "${#expected[@]}" -ne 0 ]] run ./go test --list