diff --git a/Library/Homebrew/test/unpack_strategy/subversion_spec.rb b/Library/Homebrew/test/unpack_strategy/subversion_spec.rb index 74c4c80ad4..81d958d600 100644 --- a/Library/Homebrew/test/unpack_strategy/subversion_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/subversion_spec.rb @@ -8,7 +8,9 @@ describe UnpackStrategy::Subversion, :needs_svn do let(:path) { working_copy } before do - safe_system "xcrun", "svnadmin", "create", repo + svnadmin = ["svnadmin"] + svnadmin = ["xcrun", *svnadmin] if OS.mac? && MacOS.version >= :catalina + safe_system(*svnadmin, "create", repo) safe_system "svn", "checkout", "file://#{repo}", working_copy FileUtils.touch working_copy/"test"