test/support/routes.rb in deas-0.12.0 vs test/support/routes.rb in deas-0.13.0

- old
+ new

@@ -20,16 +20,20 @@ end get '/show', 'ShowHandler' get '/halt', 'HaltHandler' get '/error', 'ErrorHandler' - get '/with_layout', 'WithLayoutHandler' - get '/alt_with_layout', 'AlternateWithLayoutHandler' get '/redirect', 'RedirectHandler' post '/session', 'SetSessionHandler' get '/session', 'UseSessionHandler' + get '/with_layout', 'WithLayoutHandler' + get '/alt_with_layout', 'AlternateWithLayoutHandler' + get '/haml_with_layout', 'HamlWithLayoutHandler' + get '/with_haml_layout', 'WithHamlLayoutHandler' + get '/haml_with_haml_layout', 'HamlWithHamlLayoutHandler' + get '/handler/tests.json', 'HandlerTestsHandler' redirect :get, '/route_redirect', '/somewhere' redirect(:get, '/:prefix/redirect'){ "/#{params['prefix']}/somewhere" } @@ -104,9 +108,39 @@ render 'layout3' do render 'with_layout' end end end + end + +end + +class HamlWithLayoutHandler + include Deas::ViewHandler + layouts 'layout1' + + def run! + render 'haml_with_layout' + end + +end + +class WithHamlLayoutHandler + include Deas::ViewHandler + layouts 'haml_layout1' + + def run! + render 'with_layout' + end + +end + +class HamlWithHamlLayoutHandler + include Deas::ViewHandler + layouts 'haml_layout1' + + def run! + render 'haml_with_layout' end end class RedirectHandler