xref: /unit/test/ruby/errors_write_to_s_custom/config.ru (revision 585:17703effc76a)
1app = Proc.new do |env|
2
3    class Custom
4        def to_s()
5            nil
6        end
7    end
8
9    e = Custom.new()
10
11    env['rack.errors'].write(e)
12    ['200', {'Content-Length' => '0'}, ['']]
13end
14
15run app
16