diff options
| author | Mike McQuaid | 2014-07-04 18:34:03 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-04 18:35:00 +0100 |
| commit | f2ccf866d9b8a3d9a4b0d730d85fba54a3d2eb88 (patch) | |
| tree | 7a6671ff5adf429b4cf3d9d3f3973d92a4225bd8 | |
| parent | 952f05597b012947aabfb0fcb5cade5bef5aaea5 (diff) | |
| download | homebrew-f2ccf866d9b8a3d9a4b0d730d85fba54a3d2eb88.tar.bz2 | |
onetime: add better test.
| -rw-r--r-- | Library/Formula/onetime.rb | 7 |
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 |
