aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlexis Hildebrandt2015-02-13 22:45:22 +0100
committerJack Nagel2015-02-13 22:46:28 -0500
commit407ebed8aa37bb78334a4fc683cabfcb206cb43a (patch)
tree88fb676e4eacdfffbe5458689b5733c05738eebf /Library/Formula
parentbd8a92dd85be3666f9e7830ea3f0b1dfbc8d8d96 (diff)
downloadhomebrew-407ebed8aa37bb78334a4fc683cabfcb206cb43a.tar.bz2
chuck: modernize
* Remove obsolete require 'formula' * Add test Closes #36804. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/chuck.rb6
1 files changed, 4 insertions, 2 deletions
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__