From 9f42578d816cccdf4db3b52af7a34e615098dea3 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 22 Oct 2018 15:45:55 +0000 Subject: [PATCH] cpansearch: secure test - swap CPAN mirror to a secure one (the one used in formulae) - swap short option to the long form, because the former ignores any URL argument passed --- Formula/cpansearch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/cpansearch.rb b/Formula/cpansearch.rb index 94f397ca29..134bc5adc6 100644 --- a/Formula/cpansearch.rb +++ b/Formula/cpansearch.rb @@ -23,7 +23,7 @@ class Cpansearch < Formula end test do - output = shell_output("#{bin}/cpans -f http://cpan.nctu.edu.tw/") + output = shell_output("#{bin}/cpans --fetch https://cpan.metacpan.org/") assert_match "packages recorded", output end end