From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 883CD63381C; Sun, 5 Jul 2015 00:31:04 +0000 (UTC) From: Eric Wong To: unicorn-public@bogomips.org Cc: Eric Wong Subject: [PATCH] test/unit/test_response.rb: compatibility with older test-unit Date: Sun, 5 Jul 2015 00:31:03 +0000 Message-Id: <1436056263-27032-1-git-send-email-e@80x24.org> List-Id: 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. --- test/unit/test_response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- EW