diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index cc62d453c7..8bf8ea63d0 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -252,7 +252,7 @@ RSpec.configure do |config| # Link original API cache files to test cache directory. Pathname("#{ENV.fetch("HOMEBREW_CACHE")}/api").glob("*.json").each do |path| - FileUtils.ln path, HOMEBREW_CACHE/"api/#{path.basename}" + FileUtils.ln_s path, HOMEBREW_CACHE/"api/#{path.basename}" end begin