mxcl/homebrew — Issue #10385: Add quick look test helper
Author: adamv
Created: 2012-02-22 04:45:33+00:00
State: open

Make a new formula_test module that is only included when doing `brew test` and which provides a helper that uses quicklook to view media.

From zint:

````
def test
mktemp do
system "#{bin}/zint -o test-zing.png -d 'This Text'"
system "/usr/bin/qlmanage -p test-zing.png"
end
end
````

The 2nd system would turn into `preview "test-zing.png"`.