aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/check_postgres.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-04 12:12:41 -0700
committerAdam Vandenberg2014-08-01 07:58:10 -0700
commitff86702dd85eab420f6f58e8dcf8375dae4b22b9 (patch)
treee0071c9d3604ab8d311679aa77ce9cce90da962f /Library/Formula/check_postgres.rb
parent1dc876667538fb33ebc9eb30edd3bc9b530592a6 (diff)
downloadhomebrew-ff86702dd85eab420f6f58e8dcf8375dae4b22b9.tar.bz2
use test helpers
Diffstat (limited to 'Library/Formula/check_postgres.rb')
-rw-r--r--Library/Formula/check_postgres.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/check_postgres.rb b/Library/Formula/check_postgres.rb
index c33cf4720..84a59a12b 100644
--- a/Library/Formula/check_postgres.rb
+++ b/Library/Formula/check_postgres.rb
@@ -28,8 +28,7 @@ class CheckPostgres < Formula
test do
# This test verifies that check_postgres fails correctly, assuming
# that no server is running at that port.
- output = `#{bin}/check_postgres --action=connection --port=65432`
+ output = shell_output("#{bin}/check_postgres --action=connection --port=65432", 2)
assert output.include? "POSTGRES_CONNECTION CRITICAL"
- assert_equal 2, $?.exitstatus
end
end