class PathGenerationTest::TestSet::Request

Public Class Methods

new(target, url_helpers, block) click to toggle source
Calls superclass method
# File railties/test/path_generation_test.rb, line 17
def initialize(target, url_helpers, block)
  super(target)
  @url_helpers = url_helpers
  @block = block
end

Public Instance Methods

controller_class() click to toggle source
# File railties/test/path_generation_test.rb, line 23
def controller_class
  url_helpers = @url_helpers
  block = @block
  Class.new(ActionController::Base) {
    include url_helpers
    define_method(:process) { |name| block.call(self) }
    def to_a; [200, {}, []]; end
  }
end
to_a() click to toggle source
# File railties/test/path_generation_test.rb, line 29
def to_a; [200, {}, []]; end