Skip to content
Snippets Groups Projects
Commit a7ad7eee authored by Shaun Jackman's avatar Shaun Jackman
Browse files

test/spec_helper: Fix :needs_svn

which("svn") detects shims/scm/svn even when svn is not installed.
parent a4c62d37
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment