test_clogger: fix Ruby 1.8 test compatibility
authorEric Wong <normalperson@yhbt.net>
Tue, 6 Nov 2012 02:56:19 +0000 (6 02:56 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 6 Nov 2012 02:56:19 +0000 (6 02:56 +0000)
1.8 did not support my preferred way of writing hashes
with symbol keys.

test/test_clogger.rb

index 9bff918..b47c112 100644 (file)
@@ -847,7 +847,7 @@ class TestClogger < Test::Unit::TestCase
     @req["rack.multiprocess"] = true
     @req["rack.run_once"] = false
     app = Rack::ContentLength.new(Rack::ContentType.new(Rack::Lobster.new))
-    cl = Clogger.new(app, format: :Combined)
+    cl = Clogger.new(app, :format => :Combined)
     @req["rack.errors"] = err = StringIO.new
     status, headers, body = r = Rack::Lint.new(cl).call(@req)
     body.each { |x| assert_kind_of String, x.to_str }