icdiff: remove unnecessary version, improve test.
Let's not use temporary files that will stick around afterwards.
This commit is contained in:
parent
a1039163c7
commit
d89231648e
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue