about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-19 20:44:50 +0000
committerEric Wong <e@80x24.org>2016-01-19 20:44:50 +0000
commit489fdac7bed0750f09d65b6105cb0b70d7ccf61f (patch)
tree1c3a326d1d6689d5eb163033dd3c6c1e6dbf148a
parentb8a39676cce2ab22efb14949073ade4f9541ceb3 (diff)
This wasn't tested before, and we ought to ensure it works since
it's rarely-used.
-rw-r--r--test/test_clogger.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_clogger.rb b/test/test_clogger.rb
index 953152e..ca3bd55 100644
--- a/test/test_clogger.rb
+++ b/test/test_clogger.rb
@@ -147,6 +147,7 @@ class TestClogger < Test::Unit::TestCase
     req = {
       'HTTP_HOST' => 'example.com:12345',
       'HTTP_COOKIE' => cookie,
+      'REMOTE_USER' => 'foo_user',
     }
     req = @req.merge(req)
     body = cl.call(req).last
@@ -154,6 +155,7 @@ class TestClogger < Test::Unit::TestCase
     body.close
     str = str.string
     assert(str.size > 128)
+    assert_equal 'foo_user', str.split(' ')[2]
     assert_match %r["echo and socat \\o/" "#{cookie}" \d+\.\d{3}], str
     assert_match %r["#{cookie}" \d+\.\d{3} example\.com:12345\n\z], str
   end