sinatra/test
Nicolas Sanguinetti 57183bc004 Added Sinatra.register and Sinatra.helpers
Sinatra.register:

* This will extend the DSL in Sinatra::Default (and subclasses) with
  the modules passed.

* All public methods in the extensions are added to Sinatra::Delegator
  when extending Sinatra::Default or it's subclasses.

* Sinatra::Base.register is available to add extensions to arbitrary
  classes (but they don't add methods to Delegator).

* You can pass a block with extensions which will get added as an
  anonymous block (same semantics of Sinatra::Base.helpers)

Sinatra.helpers:

* Will forward the modules passed to Default.helpers.

* Small change in semantics: passing a block to helpers will no longer
  class_eval the block, but will instead turn it into an anonymous
  module. This pushes it into the inheritance chain "normally" and
  allows us to call super to reach the original method if redefined.
2009-01-30 13:23:33 -08:00
..
data I knew I shoulda taken that left turn at Hoboken 2008-12-20 18:45:28 -08:00
views I knew I shoulda taken that left turn at Hoboken 2008-12-20 18:45:28 -08:00
base_test.rb Sugar added: redirect back 2009-01-29 19:37:20 -08:00
builder_test.rb use Test::Unit style assertions in Sinatra specs 2009-01-14 14:00:26 -08:00
erb_test.rb use Test::Unit style assertions in Sinatra specs 2009-01-14 14:00:26 -08:00
extensions_test.rb Added Sinatra.register and Sinatra.helpers 2009-01-30 13:23:33 -08:00
filter_test.rb Much needed refactoring in dispatching code [#131]/[#127] 2009-01-24 23:57:20 -08:00
haml_test.rb use Test::Unit style assertions in Sinatra specs 2009-01-14 14:00:26 -08:00
helper.rb Don't require rubygems in tests; do fall back if necessary 2009-01-20 12:24:36 -08:00
helpers_test.rb Add #helpers into Sinatra::Base [#134 state:resolved] 2009-01-26 11:21:53 -08:00
mapped_error_test.rb Allow assertions in mock_app request context 2009-01-15 04:18:18 -08:00
middleware_test.rb Convert tests to custom test/spec/mini [#87] 2009-01-20 12:23:15 -08:00
options_test.rb Clean framework/lib paths in error backtrace (clean_trace option) [#77] 2009-01-23 02:30:48 -08:00
reload_test.rb Disable :reload option by default when app_file is a rackup (.ru) file [#110] 2009-01-22 01:14:06 -08:00
request_test.rb Fix Request#params on PUT requests [#72] 2009-01-15 06:45:42 -08:00
response_test.rb General spec coverage improvements (rcov: 98%) 2009-01-19 17:58:26 -08:00
result_test.rb General spec coverage improvements (rcov: 98%) 2009-01-19 17:58:26 -08:00
routing_test.rb Fix :provides crashes with no Accept header [#139] 2009-01-29 03:15:55 -08:00
sass_test.rb use Test::Unit style assertions in Sinatra specs 2009-01-14 14:00:26 -08:00
server_test.rb General spec coverage improvements (rcov: 98%) 2009-01-19 17:58:26 -08:00
sinatra_test.rb use Test::Unit style assertions in Sinatra specs 2009-01-14 14:00:26 -08:00
static_test.rb Make static files work with Rack::Lint in the pipeline [#121] 2009-01-21 11:37:56 -08:00
templates_test.rb use Test::Unit style assertions in Sinatra specs 2009-01-14 14:00:26 -08:00
test_test.rb Support for nested params in Sinatra::Test 2009-01-20 12:37:50 -08:00