From 0f7c2dfc92e6ec6bb512845a39cd0f3799bcc9fc Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 12 Jul 2014 11:54:48 -0700 Subject: bibclean: improve test. --- Library/Formula/bibclean.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/bibclean.rb b/Library/Formula/bibclean.rb index 3633d7d2a..d89a37d91 100644 --- a/Library/Formula/bibclean.rb +++ b/Library/Formula/bibclean.rb @@ -51,8 +51,16 @@ class Bibclean < Formula end test do - result = system %(test `bibclean -author -trace-file-opening 2>&1 | grep "open file" | sed '/^\s*$/d' | wc -l` -ge 3) - puts "Test passed" - end + (testpath+"test.bib").write <<-EOS.undent + @article{small, + author = {Test, T.}, + title = {Test}, + journal = {Test}, + year = 2014, + note = {test}, + } + EOS + system "#{bin}/bibclean", "test.bib" + end end -- cgit v1.2.3