Skip to content

Commit

Permalink
completion/alias: fix test loading
Browse files Browse the repository at this point in the history
If we're testing the *load*, then we need to `run` the load. If not, then the assert functions can't test it properly.
  • Loading branch information
gaelicWizard authored and Bash It BATS Runner committed Jan 12, 2022
1 parent e5fec12 commit 787e199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugins/alias-completion.plugin.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function local_setup() {

@test "alias-completion: See that aliases with double quotes and brackets do not break the plugin" {
alias gtest="git log --graph --pretty=format:'%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset' --abbrev-commit --date=relative"
load ../../plugins/available/alias-completion.plugin
run load ../../plugins/available/alias-completion.plugin

assert_success
}
Expand All @@ -24,5 +24,5 @@ function local_setup() {
alias rm='rm -v'
run load ../../plugins/available/alias-completion.plugin

refute_output
assert_output ""
}

0 comments on commit 787e199

Please sign in to comment.