aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-12-08 15:22:07 +0000
committerMike McQuaid2014-12-08 15:22:07 +0000
commit3b4c6e4ec865ee4e6bf4a0c7a3f59e004c5ece31 (patch)
tree8f6021f4045612be0ff467c8b158eb5917881cab
parente7a24305c3aa0765a6c78cc33c1205406942cf4f (diff)
downloadhomebrew-3b4c6e4ec865ee4e6bf4a0c7a3f59e004c5ece31.tar.bz2
icdiff: remove unnecessary version, improve test.
Let's not use temporary files that will stick around afterwards.
-rw-r--r--Library/Formula/icdiff.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/icdiff.rb b/Library/Formula/icdiff.rb
index 818a7c04d..e187ef7aa 100644
--- a/Library/Formula/icdiff.rb
+++ b/Library/Formula/icdiff.rb
@@ -5,14 +5,15 @@ class Icdiff < Formula
homepage "https://github.com/jeffkaufman/icdiff"
url "https://github.com/jeffkaufman/icdiff/archive/release-1.1.2.tar.gz"
sha1 "89cfb79237a59ed33c55fb020965f7c94e7510bc"
- version "1.1.2"
def install
bin.install "icdiff", "git-icdiff"
end
test do
- system "#{bin}/icdiff", Tempfile.new('ic-diff').path, Tempfile.new('ic-diff').path
+ (testpath/"file1").write "test1"
+ (testpath/"file2").write "test2"
+ system "#{bin}/icdiff", "file1", "file2"
system "git", "init"
system "#{bin}/git-icdiff"
end