From 01a3a42b6a7807f9bde197695d7df7341e3663a7 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 1 Feb 2013 23:12:47 -0600 Subject: [PATCH] nss: use test DSL --- Formula/nss.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Formula/nss.rb b/Formula/nss.rb index 112aa4dfff2..5b955d8d395 100644 --- a/Formula/nss.rb +++ b/Formula/nss.rb @@ -55,13 +55,11 @@ class Nss < Formula (lib+'pkgconfig/nss.pc').write pkg_file end - def test + test do # See: http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html - mktemp do - File.open('passwd', 'w') {|f| f.write("It's a secret to everyone.") } - system "#{bin}/certutil", "-N", "-d", pwd, "-f", "passwd" - system "#{bin}/certutil", "-L", "-d", pwd - end + File.open('passwd', 'w') {|f| f.write("It's a secret to everyone.") } + system "#{bin}/certutil", "-N", "-d", pwd, "-f", "passwd" + system "#{bin}/certutil", "-L", "-d", pwd end def pkg_file; <<-EOF