From 9912d9dfe1f54afc9f7f16eef068b7d4d5f022fc Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 1 Feb 2013 23:12:54 -0600 Subject: [PATCH] salt: use test DSL --- Formula/salt.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Formula/salt.rb b/Formula/salt.rb index 2a2bb1175d..d93cd8f187 100644 --- a/Formula/salt.rb +++ b/Formula/salt.rb @@ -125,14 +125,12 @@ class Salt < Formula end end - def test - mktemp do - ENV['PATHMODEL'] = "#{prefix}/data" - cp_r Dir[prefix + '04D3gx' + '*'], '.' - # I don't know why I need to redo the cd on the shell, but it doesn't work otherwise - system "cd #{Dir.pwd}; #{bin}/snfit lc2fit_g.dat lc2fit_r.dat lc2fit_i.dat lc2fit_z.dat" - system "cat result_salt2.dat result_salt2_SNLS3.dat" - end + test do + ENV['PATHMODEL'] = "#{prefix}/data" + cp_r Dir[prefix + '04D3gx' + '*'], '.' + # I don't know why I need to redo the cd on the shell, but it doesn't work otherwise + system "cd #{Dir.pwd}; #{bin}/snfit lc2fit_g.dat lc2fit_r.dat lc2fit_i.dat lc2fit_z.dat" + system "cat result_salt2.dat result_salt2_SNLS3.dat" end def caveats