diff options
| author | Jack Nagel | 2013-03-26 11:00:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-26 12:58:46 -0500 |
| commit | c61d1f1b3d2eb223eddf077977e9f155e6f4acb3 (patch) | |
| tree | 0c4b873994ca7cfcfe2d6ca15f9f7c7a56831cc4 /Library/Formula/mp3fs.rb | |
| parent | 4ea5a8b0c2c4356305b10c2853527d88cb7c1ebc (diff) | |
| download | homebrew-c61d1f1b3d2eb223eddf077977e9f155e6f4acb3.tar.bz2 | |
mp3fs: improve test
Diffstat (limited to 'Library/Formula/mp3fs.rb')
| -rw-r--r-- | Library/Formula/mp3fs.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/mp3fs.rb b/Library/Formula/mp3fs.rb index 2a8416b47..b025a6543 100644 --- a/Library/Formula/mp3fs.rb +++ b/Library/Formula/mp3fs.rb @@ -17,7 +17,10 @@ class Mp3fs < Formula system "make install" end - def test - system "#{bin}/mp3fs -V | grep MP3FS && true || false" + test do + require 'open3' + Open3.popen3("#{bin}/mp3fs", "-V") do |_, stdout, _| + /MP3FS version #{Regexp.escape(version)}/ === stdout.read + end end end |
