sinatra/test
Ryan Tomayko c1aa6663a5 Rack pipelines leading to app; 'use' DSL method.
Moved Rack middleware management into Sinatra::Application and
enabled support for assembling custom Rack middleware pipelines
before an app.

  require 'sinatra'
  use Rack::Lint
  use Rack::Authentication
  get '/' do
    "Hello, World"
  end

Assuming a default set of options, this would result in the
following pipeline leading to the application:

  CommonLogger -> Lint -> Authentication -> Application

(The Rack::CommonLogger middleware is created automatically when the
:logging option is enabled.)

Also worth noting is that the pipeline leading to the application is
reassembled on each request during reload in :development mode.
2008-04-28 01:02:55 -04:00
..
public
views Added sass_test.rb and supporting template/layout files. 2008-04-08 19:51:20 -05:00
app_test.rb Sinatra::Application as a sandbox for the DSL 2008-04-27 23:54:43 -04:00
application_test.rb Add enable/disable methods to Application 2008-04-28 00:03:44 -04:00
builder_test.rb Builder Rendering Helper (.builder templates) w/ doco and tests. 2008-03-12 09:04:05 -04:00
custom_error_test.rb raise errors from error 2008-04-01 14:20:26 -07:00
diddy_test.rb filter on host 2008-04-01 18:20:52 -07:00
erb_test.rb
event_context_test.rb
events_test.rb bringing back the string. 2008-03-31 18:48:59 -07:00
haml_test.rb Add the possibility to configure options that are passed to Haml::Engine when evalutating HAML template. 2008-04-19 16:43:12 +02:00
helper.rb
mapped_error_test.rb raise errors from error 2008-04-01 14:20:26 -07:00
pipeline_test.rb Rack pipelines leading to app; 'use' DSL method. 2008-04-28 01:02:55 -04:00
rest_test.rb RESTful testing 2008-04-09 22:50:56 -07:00
sass_test.rb Added sass_test.rb and supporting template/layout files. 2008-04-08 19:51:20 -05:00
sessions_test.rb Move set_option(s) to Application, export to (main) 2008-04-27 23:59:58 -04:00
streaming_test.rb fixed escaped paths not resolving static files [Matthew Walker] 2008-04-26 17:56:50 -07:00
sym_params_test.rb Symbol params back in thanks to Jeremy Evans 2008-04-08 16:40:46 -07:00
template_test.rb
use_in_file_templates_test.rb New standard: use_in_file_templates uses @@ mytemplate for lookup 2008-04-27 18:05:42 -07:00