diff options
author | Eric Wong <e@80x24.org> | 2016-01-19 20:44:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-01-19 20:44:50 +0000 |
commit | 489fdac7bed0750f09d65b6105cb0b70d7ccf61f (patch) | |
tree | 1c3a326d1d6689d5eb163033dd3c6c1e6dbf148a | |
parent | b8a39676cce2ab22efb14949073ade4f9541ceb3 (diff) | |
download | clogger-489fdac7bed0750f09d65b6105cb0b70d7ccf61f.tar.gz |
This wasn't tested before, and we ought to ensure it works since it's rarely-used.
-rw-r--r-- | test/test_clogger.rb | 2 |
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 |