diff options
Diffstat (limited to 'Library/Formula/rolldice.rb')
| -rw-r--r-- | Library/Formula/rolldice.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/rolldice.rb b/Library/Formula/rolldice.rb index a35f0917d..8318175e7 100644 --- a/Library/Formula/rolldice.rb +++ b/Library/Formula/rolldice.rb @@ -10,4 +10,10 @@ class Rolldice < Formula bin.install "rolldice" man6.install gzip("rolldice.6") end + + test do + output = `#{bin}/rolldice -s 1x2d6` + assert output.include?("Roll #1") + assert_equal 0, $?.exitstatus + end end |
