diff options
| author | Jack Nagel | 2013-02-01 23:12:48 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-01 23:38:53 -0600 |
| commit | 58501aeaf288f298f6bf99925bd63afb76361aee (patch) | |
| tree | 4136c9b962612cb43b7ee03e86451c93809b47e4 /Library/Formula/pgplot.rb | |
| parent | 6c40c9a8a394c3e1ab994be50cb162d914366d6b (diff) | |
| download | homebrew-58501aeaf288f298f6bf99925bd63afb76361aee.tar.bz2 | |
pgplot: use test DSL
Diffstat (limited to 'Library/Formula/pgplot.rb')
| -rw-r--r-- | Library/Formula/pgplot.rb | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Formula/pgplot.rb b/Library/Formula/pgplot.rb index 951366794..4462f844c 100644 --- a/Library/Formula/pgplot.rb +++ b/Library/Formula/pgplot.rb @@ -102,19 +102,17 @@ EOS end end - def test - mktemp do - File.open('test_pgplot', 'w') do |t| - t.write(<<-EOS + 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} + NULL {send "/XWINDOW\n"; exp_continue} + RETURN {send "\n"; exp_continue} } EOS - ) - end - system "expect test_pgplot; killall pgxwin_server" + ) end + system "expect test_pgplot; killall pgxwin_server" end end |
