Routing a Sinatra application

Hello,

I wish to route a sinatra application in my Rails 3 app. As said by
Yehuda, it should be possible.
http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/

However I see the route isn't recognized and I get
ActionController::RoutingError problems.
It works well with simple rack apps however (the test in actionpack
with a lambda passes well).

I've written a test case which fails. But I couldn't reproduce it
without sinatra.
http://gist.github.com/376653
If you have any more luck than me, I'm all hears.

I can confirm that this is true. The recognize_path lookup failed not because it couldn’t find ‘/nested_application’, but because it found it and failed on route.app.is_a?(Dispatcher) lookup. route.app returns Sinatra::ShowExceptions, which is the first Sinatra middleware on the stack that’s unique to Sinatra.

I would suspect that this bug is in Rack::Mount, not Rails, but I’m not sure. (I’ve only poked around for a couple of minutes.)

FYI I've created a ticket about that on LightHouse.
https://rails.lighthouseapp.com/projects/8994/tickets/4478-impossibility-to-mount-a-sinatra-app