diff options
Diffstat (limited to 'test/webrick')
-rw-r--r-- | test/webrick/test_accesslog.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/webrick/test_accesslog.rb b/test/webrick/test_accesslog.rb new file mode 100644 index 0000000000..15f0a9136b --- /dev/null +++ b/test/webrick/test_accesslog.rb @@ -0,0 +1,10 @@ +require "test/unit" +require "webrick/accesslog" + +class TestWEBrickAccessLog < Test::Unit::TestCase + def test_format + format = "%{Referer}i and %{User-agent}i" + params = {"i" => {"Referer" => "ref", "User-agent" => "agent"}} + assert_equal("ref and agent", WEBrick::AccessLog.format(format, params)) + end +end |