about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-07-05 00:29:00 +0000
committerEric Wong <e@80x24.org>2015-07-05 00:29:00 +0000
commit78550a195ec70e1bbaf41fca7bac54815b117197 (patch)
treef5c5a7dff1d8015cdc563726f991f11fb7abe0ad
parent18124ca1c2e0575404519d8b854d78187ad7bc43 (diff)
downloadunicorn-78550a195ec70e1bbaf41fca7bac54815b117197.tar.gz
assert_predicate really isn't that useful even if it seems
preferred in another project I work on.  Avoid having folks
download the latest test-unit if they're on an old version of
Ruby (e.g. 1.9.3) which bundled it.
-rw-r--r--test/unit/test_response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_response.rb b/test/unit/test_response.rb
index 1e9d74a..0b14d59 100644
--- a/test/unit/test_response.rb
+++ b/test/unit/test_response.rb
@@ -94,7 +94,7 @@ class ResponseTest < Test::Unit::TestCase
     assert_equal "HTTP/1.1 200 HI\r\n", r.gets
     r.read # just drain the pipe
     pid, status = Process.waitpid2(pid)
-    assert_predicate status, :success?
+    assert status.success?, status.inspect
   ensure
     r.close
     w.close unless w.closed?