test/layouts/test_json.rb in logging-1.8.2 vs test/layouts/test_json.rb in logging-2.0.0

- old
+ new

@@ -96,9 +96,12 @@ assert_equal %Q[{"message":"log message"}\n], @layout.format(event) @layout.items = %w[method] assert_equal %Q[{"method":"method_name"}\n], @layout.format(event) + @layout.items = %w[hostname] + assert_equal %Q[{"hostname":"#{Socket.gethostname}"}\n], @layout.format(event) + @layout.items = %w[pid] assert_match %r/\A\{"pid":\d+\}\n\z/, @layout.format(event) @layout.items = %w[millis] assert_match %r/\A\{"millis":\d+\}\n\z/, @layout.format(event)