tests: test_helper already loads `composure.sh`

...and `cite()`s metadata
pull/2002/head
John D Pell 2021-10-19 11:28:48 -04:00
parent b2279b7237
commit 9dcbeec7ad
19 changed files with 5 additions and 40 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
function local_setup {
setup_test_fixture

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../completion/available/bash-it.completion
function local_setup {

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
# Determine which config file to use based on OS.
case $OSTYPE in

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
# Determine which config file to use based on OS.
case $OSTYPE in

1
test/lib/composure.bats 100755 → 100644
View File

@ -1,7 +1,6 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
@test "lib composure: _composure_keywords()" {
run _composure_keywords

View File

@ -1,13 +1,10 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/log
load ../../lib/utilities
load ../../lib/search
cite _about _param _example _group _author _version
load ../../lib/helpers
load ../../plugins/available/base.plugin

View File

@ -1,10 +1,8 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/appearance
load ../../themes/colors.theme
cite _about _param _example _group _author _version
load ../../lib/log
load ../../lib/helpers
load ../../plugins/available/base.plugin

View File

@ -1,14 +1,11 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/log
load ../../lib/helpers
load ../../lib/utilities
load ../../lib/search
cite _about _param _example _group _author _version
load ../../plugins/available/base.plugin
load ../../aliases/available/git.aliases
load ../../plugins/available/ruby.plugin

View File

@ -1,13 +1,11 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/log
load ../../lib/helpers
load ../../lib/utilities
load ../../lib/search
cite _about _param _example _group _author _version
function local_setup {
setup_test_fixture
}

View File

@ -1,12 +1,9 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/log
load ../../lib/helpers
cite _about _param _example _group _author _version
load ../../completion/available/capistrano.completion
@test "alias-completion: See that aliases with double quotes and brackets do not break the plugin" {

1
test/plugins/base.plugin.bats 100755 → 100644
View File

@ -1,7 +1,6 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/log
load ../../lib/helpers
load ../../plugins/available/base.plugin

3
test/plugins/battery.plugin.bats 100755 → 100644
View File

@ -1,12 +1,9 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load "${BASH_IT}/lib/log.bash"
load "${BASH_IT}/lib/helpers.bash"
cite _about _param _example _group _author _version
load ../../plugins/available/battery.plugin
# Sets up the `_command_exists` function so that it only responds `true` if called with

View File

@ -2,7 +2,7 @@
load ../test_helper
load ../../lib/helpers
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../vendor/init.d/preexec
load ../../plugins/available/cmd-returned-notify.plugin

View File

@ -2,7 +2,6 @@
load ../test_helper
load ../../lib/helpers
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
# We test `go version` in each test to account for users with goenv and no system go.

6
test/plugins/ruby.plugin.bats 100755 → 100644
View File

@ -2,14 +2,14 @@
load ../test_helper
load ../../lib/helpers
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../plugins/available/ruby.plugin
function local_setup {
setup_test_fixture
export OLD_PATH="$PATH"
export PATH="/usr/bin:/bin:/usr/sbin"
load ../../plugins/available/ruby.plugin
}
function local_teardown {
@ -27,8 +27,6 @@ function local_teardown {
skip 'ruby not installed'
fi
load ../../plugins/available/ruby.plugin
local last_path_entry=$(echo $PATH | tr ":" "\n" | tail -1)
[[ "${last_path_entry}" == "${HOME}"/.gem/ruby/*/bin ]]
}

View File

@ -3,7 +3,6 @@
load ../test_helper
load ../../lib/log
load ../../lib/helpers
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../plugins/available/xterm.plugin

View File

@ -1,11 +1,8 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/log
cite _about _param _example _group _author _version
load ../../lib/helpers
load ../../themes/base.theme

View File

@ -1,11 +1,8 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/log
cite _about _param _example _group _author _version
load ../../lib/helpers
load ../../themes/githelpers.theme
load ../../themes/base.theme

View File

@ -1,11 +1,8 @@
#!/usr/bin/env bats
load ../test_helper
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
load ../../lib/log
cite _about _param _example _group _author _version
load ../../lib/helpers
function local_setup {