diff options
| author | Mike Naberezny | 2014-02-04 12:58:38 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-04 21:02:18 +0000 |
| commit | 08eed524f00204c4752ba4ef2ba0d335466dd740 (patch) | |
| tree | 29ef2c1885ad6a3b7d2fbd19f6872724997c714e /Library/Formula | |
| parent | 91fbfe3fc76da02b33aa4f39f51371ec6aef5828 (diff) | |
| download | homebrew-08eed524f00204c4752ba4ef2ba0d335466dd740.tar.bz2 | |
fdupes: add test
Closes #26409.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fdupes.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/fdupes.rb b/Library/Formula/fdupes.rb index 314ad2d04..7f424aac6 100644 --- a/Library/Formula/fdupes.rb +++ b/Library/Formula/fdupes.rb @@ -11,4 +11,13 @@ class Fdupes < Formula bin.install "fdupes" man1.install "fdupes.1" end + + test do + touch "a" + touch "b" + + dupes = `#{bin}/fdupes .`.strip.split("\n").sort + assert_equal ["./a", "./b"], dupes + assert_equal 0, $?.exitstatus + end end |
