Why does this fail on Rubinius rbx-19mode?

This test was causing problems on rbx-19mode so after fixing it, i extracted it to a reproducible test.

Maybe it's got something to do with [@templates](https://github.com/zzak/sinatra/blob/rbx_test/lib/sinatra/base.rb#L1130...L1135)?