diff options
| -rw-r--r-- | Library/Formula/scrub.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/scrub.rb b/Library/Formula/scrub.rb index c2af23a1c..8400ccf11 100644 --- a/Library/Formula/scrub.rb +++ b/Library/Formula/scrub.rb @@ -15,6 +15,16 @@ class Scrub < Formula "--prefix=#{prefix}" system "make install" end + + test do + path = testpath/"foo.txt" + path.write "foo" + + output = `#{bin}/scrub -r -p dod #{path}` + assert output.include?("scrubbing #{path}") + assert_equal 0, $?.exitstatus + assert !File.exist?(path) + end end __END__ |
