aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-03-03 20:29:14 -0800
committerMike McQuaid2014-03-04 08:08:09 +0000
commit8cf989bbf2267a494d3d71b85e3080168d62fec2 (patch)
tree8358a6a0b01e77c4fd7545e8bb06a864f114ca4a /Library/Formula
parenta4ca406670c6616c4d654802f4bb890530974ff0 (diff)
downloadhomebrew-8cf989bbf2267a494d3d71b85e3080168d62fec2.tar.bz2
ruby: add test
Closes #27179. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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__