From 09cae70d5509530ed3abff9046b1dc0fe448b3b3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Sep 2009 19:19:28 -0700 Subject: use Rack::Utils::HeaderHash for $sent_http_* lookups No point in having extra code to do case-insensitive lookups, especially since the HeaderHash implementation is already in wide use and will only get faster as time goes by. --- test/test_clogger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_clogger.rb b/test/test_clogger.rb index 71dbad8..e65311f 100644 --- a/test/test_clogger.rb +++ b/test/test_clogger.rb @@ -389,7 +389,7 @@ class TestClogger < Test::Unit::TestCase str = StringIO.new app = lambda { |env| [302, [ %w(a) ], []] } cl = Clogger.new(app, :logger => str, :format => '$sent_http_set_cookie') - assert_raise(TypeError) { cl.call(@req) } + assert_nothing_raised { cl.call(@req) } end def test_http_09_request -- cgit v1.2.3-24-ge0c7