diff options
Diffstat (limited to 'Library/Formula')
| -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 |
