aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/spec_helper.rb4
-rw-r--r--Library/Homebrew/test/utils/svn_spec.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb
index 865342ddf..cba530736 100644
--- a/Library/Homebrew/test/spec_helper.rb
+++ b/Library/Homebrew/test/spec_helper.rb
@@ -75,6 +75,10 @@ RSpec.configure do |config|
skip "Requires network connection." unless ENV["HOMEBREW_TEST_ONLINE"]
end
+ config.before(:each, :needs_svn) do
+ skip "Requires subversion." unless which "svn"
+ end
+
config.around(:each) do |example|
def find_files
Find.find(TEST_TMPDIR)
diff --git a/Library/Homebrew/test/utils/svn_spec.rb b/Library/Homebrew/test/utils/svn_spec.rb
index 503d285f3..f527a614f 100644
--- a/Library/Homebrew/test/utils/svn_spec.rb
+++ b/Library/Homebrew/test/utils/svn_spec.rb
@@ -30,7 +30,7 @@ describe Utils do
expect(described_class.svn_remote_exists(HOMEBREW_CACHE/"install")).to be_falsey
end
- it "returns true when remote exists", :needs_network do
+ it "returns true when remote exists", :needs_network, :needs_svn do
remote = "http://github.com/Homebrew/install"
svn = HOMEBREW_SHIMS_PATH/"scm/svn"