aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2014-12-31 21:46:03 +0800
committerMike McQuaid2014-12-31 14:59:28 +0000
commitf2d6f5d681ba367e641ca05f03e11ac226c927c0 (patch)
treec54a7442f061fddcba2206d1c272f01a09474af9 /Library/Formula
parent0fa440772bff60d63af6ae6c651a0135f259d750 (diff)
downloadhomebrew-f2d6f5d681ba367e641ca05f03e11ac226c927c0.tar.bz2
renameutils: add test
Closes #35396.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/renameutils.rb6
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__