test/support/fake_sinatra_call.rb in deas-0.29.0 vs test/support/fake_sinatra_call.rb in deas-0.30.0

- old
+ new

@@ -19,11 +19,10 @@ @logger = Deas::NullLogger.new @router = Deas::Router.new @template_source = Deas::NullTemplateSource.new @settings = OpenStruct.new({ - :deas_template_scope => Deas::Template::Scope, :deas_default_charset => 'utf-8', :logger => @logger, :router => @router, :template_source => @template_source }.merge(settings)) @@ -38,19 +37,9 @@ end def content_type(*args); args; end def status(*args); args; end def headers(*args); args; end - - # return the template name for each nested calls - def erb(template_name, opts, &block) - if block - RenderArgs.new(template_name, opts, block.call) - else - RenderArgs.new(template_name, opts, nil) - end - end - RenderArgs = Struct.new(:template_name, :opts, :block_call_result) def send_file(file_path, opts, &block) if block SendFileArgs.new(file_path, opts, block.call) else