test/spec_helper: fix needs_svn.

Use the shim to find a valid Subversion.
This commit is contained in:
Mike McQuaid 2020-06-24 10:13:09 +01:00
parent 58cc7dd96c
commit c250227750
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -129,6 +129,8 @@ RSpec.configure do |config|
end
config.before(:each, :needs_svn) do
skip "subversion not installed." unless quiet_system "#{HOMEBREW_SHIMS_PATH}/scm/svn", "--version"
svn_paths = PATH.new(ENV["PATH"])
if OS.mac?
xcrun_svn = Utils.popen_read("xcrun", "-f", "svn")