aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShaun Jackman2018-02-05 18:36:26 -0800
committerShaun Jackman2018-02-15 13:50:09 -0800
commitd70d91cf2aa5223655b0c66baa61f06040663847 (patch)
tree4ce34d0f19423b1f5e4122fd48eb50f3d0ed74b1
parent988e8054482c3458c387c5e589292144f2b26e50 (diff)
downloadbrew-d70d91cf2aa5223655b0c66baa61f06040663847.tar.bz2
test/utils/svn: Requires svn to succeed
-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"