Merge pull request #1025 from yuwash/ruby-test-skip
skip ruby PATH test if ruby not installedpull/1029/head
commit
1282f7fbae
|
|
@ -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