diff options
| author | Mike Naberezny | 2014-03-03 20:29:14 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-04 08:08:09 +0000 |
| commit | 8cf989bbf2267a494d3d71b85e3080168d62fec2 (patch) | |
| tree | 8358a6a0b01e77c4fd7545e8bb06a864f114ca4a /Library/Formula | |
| parent | a4ca406670c6616c4d654802f4bb890530974ff0 (diff) | |
| download | homebrew-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.rb | 6 |
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__ |
