aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-02-10 16:40:06 -0800
committerBrett Koonce2014-02-10 18:49:34 -0600
commit2ff6ebd89f524530d1823501291f0a9aa7a799ff (patch)
tree305153202ff4c379b3c52718bd8c8b271ea42d84 /Library/Formula
parent5c6cb18a3c7a4a4c41e81653c4d9b985e71a9533 (diff)
downloadhomebrew-2ff6ebd89f524530d1823501291f0a9aa7a799ff.tar.bz2
csv-fix: update sha1 and add test
Closes #26598. Signed-off-by: Brett Koonce <koonce@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/csv-fix.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/csv-fix.rb b/Library/Formula/csv-fix.rb
index 5844adc5e..62c8574e8 100644
--- a/Library/Formula/csv-fix.rb
+++ b/Library/Formula/csv-fix.rb
@@ -3,10 +3,18 @@ require 'formula'
class CsvFix < Formula
homepage 'http://code.google.com/p/csvfix/'
url 'https://bitbucket.org/neilb/csvfix/get/version-1.3.zip'
- sha1 '9d8c4c38abf4be722eb6e3fc967fd2eeb3bd2299'
+ sha1 '2bca2d461434e7bd799e6c886d8eda769e7d3937'
def install
system "make lin"
bin.install 'csvfix/bin/csvfix'
end
+
+ test do
+ IO.popen("#{bin}/csvfix trim", "w+") do |pipe|
+ pipe.write "foo , bar \n"
+ pipe.close_write
+ assert_equal %{"foo","bar"\n}, pipe.read
+ end
+ end
end