aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/utils/svn_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/test/utils/svn_spec.rb b/Library/Homebrew/test/utils/svn_spec.rb
index 4edb365a0..503d285f3 100644
--- a/Library/Homebrew/test/utils/svn_spec.rb
+++ b/Library/Homebrew/test/utils/svn_spec.rb
@@ -7,7 +7,11 @@ describe Utils do
end
it "returns svn version if svn available" do
- expect(described_class.svn_available?).to be_truthy
+ if File.executable? "/usr/bin/svn"
+ expect(described_class.svn_available?).to be_truthy
+ else
+ expect(described_class.svn_available?).to be_falsey
+ end
end
end