Merge pull request #3768 from sjackman/test-svn

test/utils/svn: Requires svn to succeed
This commit is contained in:
Mike McQuaid 2018-02-16 08:15:03 +00:00 committed by GitHub
commit 7f6e77226a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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"