From 99ce4bfb1df59a41ab84cef61307b15a0cf2f9da Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Wed, 12 Feb 2014 10:07:44 -0800 Subject: rolldice: add test Closes #26661. Signed-off-by: Adam Vandenberg --- Library/Formula/rolldice.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Formula/rolldice.rb') 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 -- cgit v1.2.3