diff options
| author | Xu Cheng | 2014-12-31 21:46:03 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-31 14:59:28 +0000 |
| commit | f2d6f5d681ba367e641ca05f03e11ac226c927c0 (patch) | |
| tree | c54a7442f061fddcba2206d1c272f01a09474af9 /Library/Formula | |
| parent | 0fa440772bff60d63af6ae6c651a0135f259d750 (diff) | |
| download | homebrew-f2d6f5d681ba367e641ca05f03e11ac226c927c0.tar.bz2 | |
renameutils: add test
Closes #35396.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/renameutils.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/renameutils.rb b/Library/Formula/renameutils.rb index 526cd2e5b..e7f5e35c8 100644 --- a/Library/Formula/renameutils.rb +++ b/Library/Formula/renameutils.rb @@ -22,6 +22,12 @@ class Renameutils < Formula ENV.deparallelize # parallel install fails system "make", "install" end + + test do + (testpath/"test.txt").write ("Hello World!") + pipe_output("#{bin}/icp test.txt", ".2\n") + assert_equal File.read("test.txt"), File.read("test.txt.2") + end end __END__ |
