about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-14 16:30:38 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-14 16:30:38 -0800
commit5580514d1b291217ccfd62f2f1b06f64aa3906ef (patch)
treecd9d9832a01e30896c137e6fa5d409902b4e3e0c /test
parent916e7f09c56ff0ab6722c4cce5e78d71ec336d48 (diff)
downloadclogger-5580514d1b291217ccfd62f2f1b06f64aa3906ef.tar.gz
nginx doesn't have this, only time_local, but we do
Diffstat (limited to 'test')
-rw-r--r--test/test_clogger.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_clogger.rb b/test/test_clogger.rb
index 2cd895c..40c9190 100644
--- a/test/test_clogger.rb
+++ b/test/test_clogger.rb
@@ -689,4 +689,12 @@ class TestClogger < Test::Unit::TestCase
     status, headers, body = cl.call(@req)
     assert_equal expect, s[0]
   end
+
+  def test_time_utc
+    s = []
+    app = lambda { |env| [200, [], [] ] }
+    cl = Clogger.new(app, :logger => s, :format => "$time_utc")
+    status, headers, body = cl.call(@req)
+    assert %r!\A\d+/\w+/\d{4}:\d\d:\d\d:\d\d \+0000\n\z! =~ s[0], s.inspect
+  end
 end