test/support/view_handlers.rb in deas-0.30.0 vs test/support/view_handlers.rb in deas-0.31.0

- old
+ new

@@ -33,43 +33,9 @@ def init!; @init_bang_called = true; end def run!; @run_bang_called = true; end end -class RenderViewHandler - include Deas::ViewHandler - - def run! - render "my_template", :some => 'local' - end -end - -class SourceRenderViewHandler - include Deas::ViewHandler - - def run! - source = Deas::TemplateSource.new(Factory.path) - source_render source, "my_template", :some => 'local' - end -end - -class PartialViewHandler - include Deas::ViewHandler - - def run! - partial "my_partial", :some => 'local' - end -end - -class SourcePartialViewHandler - include Deas::ViewHandler - - def run! - source = Deas::TemplateSource.new(Factory.path) - source_partial source, "my_partial", :some => 'local' - end -end - class SendFileViewHandler include Deas::ViewHandler def run! send_file "my_file.txt", :some => :option