aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bibclean.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-07-12 11:54:48 -0700
committerMike McQuaid2014-07-12 11:55:32 -0700
commit0f7c2dfc92e6ec6bb512845a39cd0f3799bcc9fc (patch)
treeb930960ab0e4fbda294959e8cf3df43b4687fb61 /Library/Formula/bibclean.rb
parent273996b3436a46b94954f904cb463a20050da324 (diff)
downloadhomebrew-0f7c2dfc92e6ec6bb512845a39cd0f3799bcc9fc.tar.bz2
bibclean: improve test.
Diffstat (limited to 'Library/Formula/bibclean.rb')
-rw-r--r--Library/Formula/bibclean.rb14
1 files changed, 11 insertions, 3 deletions
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