Class: Ventilation::DeepStack
- Inherits:
-
ActionController::TestCase
- Object
- ActionController::TestCase
- Ventilation::DeepStack
- Includes:
- ActionController::TestProcess
- Defined in:
- lib/ventilation/deep_stack.rb,
lib/ventilation/deep_stack.rb,
lib/ventilation/deep_stack.rb
Overview
Simulate concurrency by serving request recursively.
Instance Method Summary collapse
-
#initialize(controller_class) ⇒ DeepStack
constructor
A new instance of DeepStack.
Constructor Details
#initialize(controller_class) ⇒ DeepStack
Returns a new instance of DeepStack.
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ventilation/deep_stack.rb', line 19 def initialize(controller_class) @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @controller = controller_class.new if @controller @controller.request = @request @controller.params = {} @controller.send(:initialize_current_url) end end |