Merge pull request #1025 from yuwash/ruby-test-skip

skip ruby PATH test if ruby not installed
This commit is contained in:
Nils Winkler
2017-08-18 08:43:10 +02:00
committed by GitHub

View File

@@ -11,6 +11,10 @@ load ../../plugins/available/ruby.plugin
}
@test "plugins ruby: PATH includes ~/.gem/ruby/bin" {
if ! which ruby >/dev/null; then
skip 'ruby not installed'
fi
last_path_entry=$(echo $PATH | tr ":" "\n" | tail -1);
[[ "${last_path_entry}" == "${HOME}"/.gem/ruby/*/bin ]]
}