skip ruby PATH test if ruby not installed
parent
a6c91f15a0
commit
a4472fedaa
|
|
@ -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 ]]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue