aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/bash.rb')
-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__