test case to simulate Rack::BodyProxy usage pattern
commite1bed92891f7db5c2d24040778fe31f76d723efe
authorEric Wong <normalperson@yhbt.net>
Fri, 8 Jun 2012 22:37:38 +0000 (8 15:37 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 8 Jun 2012 22:37:38 +0000 (8 15:37 -0700)
tree0ba7c0a61ff3816d8f3cfc810d6c1fffc647e69a
parenteaa531a0e014aa8e4318e11b793f8665ce1509d0
test case to simulate Rack::BodyProxy usage pattern

The use of Rack::BodyProxy#method_missing causes failures
under mainline Ruby 1.9.2 and 1.9.1, but not 1.9.3.   This
test case exists to document this (now-fixed) bug for users
stuck on older Rubies.

On a side note, our usage of rb_iterate() should be rewritten
to use rb_block_call() as rb_iterate() is deprecated in 1.9.

A Ruby 1.9.2-p290 user privately reported this issue.
test/test_clogger.rb