find bin dir relative to bats test dir

This commit is contained in:
Tester 2015-06-02 15:40:13 -04:00
parent 85a01065d1
commit ddb12e2e8b

View file

@ -13,7 +13,7 @@ stub_ruby_build() {
}
extract_usage_from() {
local program="../bin/$1"
local program="$BATS_TEST_DIRNAME/../bin/$1"
sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$program"
}