From 7c2b31b577375a79a1d9ca8552eac5689de18442 Mon Sep 17 00:00:00 2001 From: evanweaver Date: Sat, 27 Oct 2007 08:48:53 +0000 Subject: yet another possible exception class for test_header_is_too_long git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@794 19e92222-5c0b-0410-8929-a290d50e31e9 --- test/test_ws.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_ws.rb b/test/test_ws.rb index 24a807d..f019122 100644 --- a/test/test_ws.rb +++ b/test/test_ws.rb @@ -86,7 +86,7 @@ class WebServerTest < Test::Unit::TestCase def test_header_is_too_long redirect_test_io do long = "GET /test HTTP/1.1\r\n" + ("X-Big: stuff\r\n" * 15000) + "\r\n" - assert_raises Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNABORTED, Errno::EINVAL do + assert_raises Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNABORTED, Errno::EINVAL, IOError do do_test(long, long.length/2, 10) end end -- cgit v1.2.3-24-ge0c7