class RoutingTestHelpers::TestSet::Request

Public Class Methods

new(target, helpers, block, strict) click to toggle source
Calls superclass method
# File actionpack/test/abstract_unit.rb, line 316
def initialize(target, helpers, block, strict)
  super(target)
  @helpers = helpers
  @block = block
  @strict = strict
end

Public Instance Methods

controller_class() click to toggle source
Calls superclass method
# File actionpack/test/abstract_unit.rb, line 323
def controller_class
  helpers = @helpers
  block = @block
  Class.new(@strict ? super : ActionController::Base) {
    include helpers
    define_method(:process) { |name| block.call(self) }
    def to_a; [200, {}, []]; end
  }
end
to_a() click to toggle source
# File actionpack/test/abstract_unit.rb, line 329
def to_a; [200, {}, []]; end