From 407ebed8aa37bb78334a4fc683cabfcb206cb43a Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Fri, 13 Feb 2015 22:45:22 +0100 Subject: chuck: modernize * Remove obsolete require 'formula' * Add test Closes #36804. Signed-off-by: Jack Nagel --- Library/Formula/chuck.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/chuck.rb b/Library/Formula/chuck.rb index 298327130..fe7880cc4 100644 --- a/Library/Formula/chuck.rb +++ b/Library/Formula/chuck.rb @@ -1,5 +1,3 @@ -require "formula" - class Chuck < Formula homepage "http://chuck.cs.princeton.edu/" url "http://chuck.cs.princeton.edu/release/files/chuck-1.3.4.0.tgz" @@ -22,6 +20,10 @@ class Chuck < Formula bin.install "src/chuck" (share/"chuck").install "examples" end + + test do + assert_match /probe \[success\]/m, shell_output("#{bin}/chuck --probe 2>&1") + end end __END__ -- cgit v1.2.3