aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-07-04 18:34:03 +0100
committerMike McQuaid2014-07-04 18:35:00 +0100
commitf2ccf866d9b8a3d9a4b0d730d85fba54a3d2eb88 (patch)
tree7a6671ff5adf429b4cf3d9d3f3973d92a4225bd8 /Library/Formula
parent952f05597b012947aabfb0fcb5cade5bef5aaea5 (diff)
downloadhomebrew-f2ccf866d9b8a3d9a4b0d730d85fba54a3d2eb88.tar.bz2
onetime: add better test.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/onetime.rb7
1 files changed, 6 insertions, 1 deletions
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