diff options
author | Eric Wong <e@80x24.org> | 2015-07-05 00:29:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-07-05 00:29:00 +0000 |
commit | 78550a195ec70e1bbaf41fca7bac54815b117197 (patch) | |
tree | f5c5a7dff1d8015cdc563726f991f11fb7abe0ad /test/unit/test_response.rb | |
parent | 18124ca1c2e0575404519d8b854d78187ad7bc43 (diff) | |
download | unicorn-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.
Diffstat (limited to 'test/unit/test_response.rb')
-rw-r--r-- | test/unit/test_response.rb | 2 |
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? |