aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
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__