diff options
| author | Adam Vandenberg | 2014-05-04 12:12:41 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-08-01 07:58:10 -0700 |
| commit | ff86702dd85eab420f6f58e8dcf8375dae4b22b9 (patch) | |
| tree | e0071c9d3604ab8d311679aa77ce9cce90da962f /Library/Formula/mp3fs.rb | |
| parent | 1dc876667538fb33ebc9eb30edd3bc9b530592a6 (diff) | |
| download | homebrew-ff86702dd85eab420f6f58e8dcf8375dae4b22b9.tar.bz2 | |
use test helpers
Diffstat (limited to 'Library/Formula/mp3fs.rb')
| -rw-r--r-- | Library/Formula/mp3fs.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/mp3fs.rb b/Library/Formula/mp3fs.rb index 03ac8bb14..012ac669c 100644 --- a/Library/Formula/mp3fs.rb +++ b/Library/Formula/mp3fs.rb @@ -17,9 +17,7 @@ class Mp3fs < Formula end test do - require "open3" - Open3.popen3("#{bin}/mp3fs", "-V") do |_, stdout, _| - assert_match /MP3FS version #{Regexp.escape(version)}/, stdout.read - end + assert_match /mp3fs version: #{Regexp.escape(version)}/, + shell_output("#{bin}/mp3fs -V") end end |
