You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
712 B
20 lines
712 B
commit f00c791c8baa150bea4de7a4efbe941b93470c02
|
|
Author: Sam Soffes <sam@samsoff.es>
|
|
Date: Fri Sep 14 11:55:10 2012 -0700
|
|
|
|
Support Sinatra::ExtendedRack. Fixes #30
|
|
|
|
diff --git a/lib/sinatra/async/test.rb b/lib/sinatra/async/test.rb
|
|
index 1571dbe..7e98aca 100644
|
|
--- a/lib/sinatra/async/test.rb
|
|
+++ b/lib/sinatra/async/test.rb
|
|
@@ -87,6 +87,8 @@ class Sinatra::Async::Test
|
|
# This hack exists because sinatra is now returning a proper rack stack.
|
|
# We might need to consider alternative approaches in future.
|
|
app = app()
|
|
+ app = app.app if app.is_a?(Sinatra::ExtendedRack)
|
|
+
|
|
until app.nil? || app.is_a?(Sinatra::Base)
|
|
app = app.instance_variable_get(:@app)
|
|
end
|