diff options
| author | Adam Vandenberg | 2013-06-13 08:49:58 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-13 08:50:17 -0700 |
| commit | 95e666eecf08c14076ce19a9629a75a83b11ed57 (patch) | |
| tree | 9ed089a74c049513e55be3f484a3ae2673bab269 /Library/Formula/pgplot.rb | |
| parent | 029e6d2632b34958ca407364c6160ee071e6dcb7 (diff) | |
| download | homebrew-95e666eecf08c14076ce19a9629a75a83b11ed57.tar.bz2 | |
pgplot: use testpath
Diffstat (limited to 'Library/Formula/pgplot.rb')
| -rw-r--r-- | Library/Formula/pgplot.rb | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Library/Formula/pgplot.rb b/Library/Formula/pgplot.rb index 41419f148..ab8fa74c5 100644 --- a/Library/Formula/pgplot.rb +++ b/Library/Formula/pgplot.rb @@ -103,16 +103,13 @@ EOS end test do - File.open('test_pgplot', 'w') do |t| - t.write(<<-EOS -spawn #{prefix}/examples/pgdemo1 -expect { - NULL {send "/XWINDOW\n"; exp_continue} - RETURN {send "\n"; exp_continue} -} -EOS - ) - end + (testpath/'test_pgplot').write <<-EOS.undent + spawn #{prefix}/examples/pgdemo1 + expect { + NULL {send "/XWINDOW\n"; exp_continue} + RETURN {send "\n"; exp_continue} + } + EOS system "expect test_pgplot; killall pgxwin_server" end end |
