tests: test_helper already loads composure.sh
...and `cite()`s metadata
This commit is contained in:
@@ -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
Executable file → Normal file
1
test/plugins/base.plugin.bats
Executable file → Normal 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
Executable file → Normal file
3
test/plugins/battery.plugin.bats
Executable file → Normal 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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
Executable file → Normal file
6
test/plugins/ruby.plugin.bats
Executable file → Normal 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 ]]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user