skip ruby PATH test if ruby not installed
This commit is contained in:
@@ -11,6 +11,10 @@ load ../../plugins/available/ruby.plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "plugins ruby: PATH includes ~/.gem/ruby/bin" {
|
@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=$(echo $PATH | tr ":" "\n" | tail -1);
|
||||||
[[ "${last_path_entry}" == "${HOME}"/.gem/ruby/*/bin ]]
|
[[ "${last_path_entry}" == "${HOME}"/.gem/ruby/*/bin ]]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user