diff options
| author | Jack Nagel | 2013-02-01 23:12:54 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-01 23:38:55 -0600 |
| commit | a98c711d1dca0f55ffb090779eb8ca4f1a39c41a (patch) | |
| tree | f369a1adaffad52dd87857c4fbd39f1e68453c34 /Library/Formula/salt.rb | |
| parent | 555c2b61fd8792159fb836846f5fbf0d4419439f (diff) | |
| download | homebrew-a98c711d1dca0f55ffb090779eb8ca4f1a39c41a.tar.bz2 | |
salt: use test DSL
Diffstat (limited to 'Library/Formula/salt.rb')
| -rw-r--r-- | Library/Formula/salt.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/salt.rb b/Library/Formula/salt.rb index 2a2bb1175..d93cd8f18 100644 --- a/Library/Formula/salt.rb +++ b/Library/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 |
