From fa583178ed21abd41a0e42187cc21d3fa8c11f02 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sat, 4 Jun 2016 10:26:16 +0100 Subject: [PATCH] algernon: test style nits --- Formula/algernon.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Formula/algernon.rb b/Formula/algernon.rb index dbf405cdff..2c6384510c 100644 --- a/Formula/algernon.rb +++ b/Formula/algernon.rb @@ -105,9 +105,8 @@ class Algernon < Formula sleep(1) # Check that the server is responding correctly - output = `curl -sIm3 -o- http://localhost#{cport}` - assert_match /^Server: Algernon/, output - assert_equal 0, $?.exitstatus + output = shell_output("curl -sIm3 -o- http://localhost#{cport}") + assert_match(/^Server: Algernon/, output) ensure # Stop the server gracefully