21 lines
477 B
Bash
Executable File
21 lines
477 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
load ../test_helper
|
|
load ../../lib/helpers
|
|
load ../../lib/composure
|
|
load ../../plugins/available/ruby.plugin
|
|
|
|
@test "plugins ruby: remove_gem is defined" {
|
|
run type remove_gem
|
|
assert_line 1 "remove_gem () "
|
|
}
|
|
|
|
@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 ]]
|
|
}
|