diff options
| author | Mike Naberezny | 2014-02-08 10:46:17 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-08 18:47:57 +0000 |
| commit | 37f35fefa4eada4350109eb7c7e0174327f95ef1 (patch) | |
| tree | f5bcd4d76cc865fe4a587744575f7b19ae47f637 /Library | |
| parent | 57c5e15200207e2d4814471b280acc6e1151babc (diff) | |
| download | homebrew-37f35fefa4eada4350109eb7c7e0174327f95ef1.tar.bz2 | |
bash: add test
Closes #26532.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/bash.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/bash.rb b/Library/Formula/bash.rb index 8d3b29236..17a7f9538 100644 --- a/Library/Formula/bash.rb +++ b/Library/Formula/bash.rb @@ -41,6 +41,12 @@ class Bash < Formula it must be added to /etc/shells. EOS end + + test do + output = `#{bin}/bash -c "echo hello"`.strip + assert_equal "hello", output + assert_equal 0, $?.exitstatus + end end __END__ |
