aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-02-08 10:46:17 -0800
committerMike McQuaid2014-02-08 18:47:57 +0000
commit37f35fefa4eada4350109eb7c7e0174327f95ef1 (patch)
treef5bcd4d76cc865fe4a587744575f7b19ae47f637 /Library/Formula
parent57c5e15200207e2d4814471b280acc6e1151babc (diff)
downloadhomebrew-37f35fefa4eada4350109eb7c7e0174327f95ef1.tar.bz2
bash: add test
Closes #26532. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bash.rb6
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__