test/spec_helper: Fix :needs_svn
which("svn") detects shims/scm/svn even when svn is not installed.
This commit is contained in:
parent
a4c62d37b1
commit
a7ad7eee78
@ -98,7 +98,10 @@ RSpec.configure do |config|
|
||||
end
|
||||
|
||||
config.before(:each, :needs_svn) do
|
||||
skip "subversion not installed." unless which "svn"
|
||||
homebrew_bin = File.dirname HOMEBREW_BREW_FILE
|
||||
unless %W[/usr/bin/svn #{homebrew_bin}/svn].map { |x| File.executable?(x) }.any?
|
||||
skip "subversion not installed."
|
||||
end
|
||||
end
|
||||
|
||||
config.before(:each, :needs_unzip) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user