Merge pull request #5180 from sjackman/needs-svn
test/spec_helper: Fix :needs_svn
This commit is contained in:
commit
b1a4ed04c4
@ -98,7 +98,10 @@ RSpec.configure do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
config.before(:each, :needs_svn) do
|
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
|
end
|
||||||
|
|
||||||
config.before(:each, :needs_unzip) do
|
config.before(:each, :needs_unzip) do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user