From 37f35fefa4eada4350109eb7c7e0174327f95ef1 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sat, 8 Feb 2014 10:46:17 -0800 Subject: bash: add test Closes #26532. Signed-off-by: Mike McQuaid --- Library/Formula/bash.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Formula/bash.rb') 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__ -- cgit v1.2.3