From 12ed1b79d3173bd636a0e6d056a8d5421715a395 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Mon, 15 May 2017 07:40:56 +0200 Subject: [PATCH] Check for enabled components after install --- test/install/install.bats | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/install/install.bats b/test/install/install.bats index 405519bf..86ed5169 100644 --- a/test/install/install.bats +++ b/test/install/install.bats @@ -6,10 +6,10 @@ load ../../lib/composure # Determine which config file to use based on OS. case $OSTYPE in darwin*) - BASH_IT_CONFIG_FILE=.bash_profile + export BASH_IT_CONFIG_FILE=.bash_profile ;; *) - BASH_IT_CONFIG_FILE=.bashrc + export BASH_IT_CONFIG_FILE=.bashrc ;; esac @@ -35,7 +35,7 @@ function local_teardown { } @test "install: verify that the install script exists" { - [ -e "$BASH_IT/install.sh" ] + assert [ -e "$BASH_IT/install.sh" ] } @test "install: run the install script silently" { @@ -43,5 +43,11 @@ function local_teardown { ./install.sh --silent - [ -e "$BASH_IT_TEST_HOME/$BASH_IT_CONFIG_FILE" ] + assert [ -e "$BASH_IT_TEST_HOME/$BASH_IT_CONFIG_FILE" ] + + assert [ -L "$BASH_IT/aliases/enabled/150---general.aliases.bash" ] + assert [ -L "$BASH_IT/plugins/enabled/250---base.plugin.bash" ] + assert [ -L "$BASH_IT/plugins/enabled/250---alias-completion.plugin.bash" ] + assert [ -L "$BASH_IT/completion/enabled/350---bash-it.completion.bash" ] + assert [ -L "$BASH_IT/completion/enabled/350---system.completion.bash" ] }