# File lib/sinatra/async/test.rb, line 87 def settings # This hack exists because sinatra is now returning a proper rack stack. # We might need to consider alternative approaches in future. app = app() until app.nil? || app.is_a?(Sinatra::Base) app = app.instance_variable_get(:@app) end raise "Cannot determine sinatra application from #{app()}" unless app app.settings end