Module: ActionController::Integration::ControllerCapture

Defined in:
lib/action_controller/integration.rb

Overview

A module used to extend ActionController::Base, so that integration tests can capture the controller used to satisfy a request.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



311
312
313
314
315
316
317
318
319
# File 'lib/action_controller/integration.rb', line 311

def self.included(base)
  base.extend(ClassMethods)
  base.class_eval do
    class <<self
      alias_method :new_without_capture, :new
      alias_method :new, :new_with_capture
    end
  end
end