From 1cb9093c9c4cfd741eea165aa5d36d499407ac28 Mon Sep 17 00:00:00 2001 From: Ivan Povalyukhin Date: Sun, 7 Jun 2015 20:23:19 -0700 Subject: [PATCH] [pathmunge] fix test and modify metadata syntax in the function pathmunge to be easier supported in the test --- lib/helpers.bash | 8 ++++---- test/plugins/ruby.plugin.bats | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index c5ae9cd1..ebd68119 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -365,10 +365,10 @@ all_groups () if ! type pathmunge > /dev/null 2>&1 then function pathmunge () { - _about 'prevent duplicate directories in you PATH variable' - _group 'lib helpers' - _example 'pathmunge /path/to/dir is equivalent to PATH=/path/to/dir:$PATH' - _example 'pathmunge /path/to/dir after is equivalent to PATH=$PATH:/path/to/dir' + about 'prevent duplicate directories in you PATH variable' + group 'lib helpers' + example 'pathmunge /path/to/dir is equivalent to PATH=/path/to/dir:$PATH' + example 'pathmunge /path/to/dir after is equivalent to PATH=$PATH:/path/to/dir' if ! [[ $PATH =~ (^|:)$1($|:) ]] ; then if [ "$2" = "after" ] ; then diff --git a/test/plugins/ruby.plugin.bats b/test/plugins/ruby.plugin.bats index d3bbd70d..b9d9f56c 100755 --- a/test/plugins/ruby.plugin.bats +++ b/test/plugins/ruby.plugin.bats @@ -1,6 +1,7 @@ #!/usr/bin/env bats load ../test_helper +load ../../lib/helpers load ../../lib/composure load ../../plugins/available/ruby.plugin