From f2ccf866d9b8a3d9a4b0d730d85fba54a3d2eb88 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 4 Jul 2014 18:34:03 +0100 Subject: onetime: add better test. --- Library/Formula/onetime.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/onetime.rb b/Library/Formula/onetime.rb index 6798dc44c..cc458cf20 100644 --- a/Library/Formula/onetime.rb +++ b/Library/Formula/onetime.rb @@ -20,6 +20,11 @@ class Onetime < Formula end test do - system "#{bin}/onetime", "--version" + (testpath+'pad_data.txt').write "PAD_DATA" + (testpath+'input.txt').write "INPUT" + system "#{bin}/onetime", "-e", "--pad=pad_data.txt", "--no-trace", + "--config=.", "input.txt" + system "#{bin}/onetime", "-d", "--pad=pad_data.txt", "--no-trace", + "--config=.", "input.txt.onetime" end end -- cgit v1.2.3