From 8cf989bbf2267a494d3d71b85e3080168d62fec2 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Mon, 3 Mar 2014 20:29:14 -0800 Subject: ruby: add test Closes #27179. Signed-off-by: Mike McQuaid --- Library/Formula/ruby.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index 045c1732e..e544320a3 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -78,6 +78,12 @@ class Ruby < Formula to restore binstubs for installed gems. EOS end + + test do + output = `#{bin}/ruby -e 'puts "hello"'` + assert_equal "hello\n", output + assert_equal 0, $?.exitstatus + end end __END__ -- cgit v1.2.3