aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ruby.rb6
1 files changed, 6 insertions, 0 deletions
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__