aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2015-08-22 09:44:12 -0400
committereileencodes <eileencodes@gmail.com>2015-08-22 09:44:24 -0400
commit4276b214f8a13a38ac7dc4911e90d295a8e40d5a (patch)
tree3711ad9a0fc8a3aa25372ec5d806812cc60a9447 /actionpack/test
parent0885a5cbf0c26fb01f95293b564267c70317ac9e (diff)
downloadrails-4276b214f8a13a38ac7dc4911e90d295a8e40d5a.tar.gz
rails-4276b214f8a13a38ac7dc4911e90d295a8e40d5a.tar.bz2
rails-4276b214f8a13a38ac7dc4911e90d295a8e40d5a.zip
Refactor to remove controller class from route to request
This refactoring moves the controller class name that was on the route set to the request. The purpose of this refactoring is for changes we need to move controller tests to integration tests, mainly being able to access the controller on the request instead of having to go through the router. [Eileen M. Uchitelle & Aaron Patterson]
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/abstract_unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb
index 60e2cea8a2..fa0b6087ba 100644
--- a/actionpack/test/abstract_unit.rb
+++ b/actionpack/test/abstract_unit.rb
@@ -122,7 +122,7 @@ class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
class StubDispatcher < ::ActionDispatch::Routing::RouteSet::Dispatcher
protected
def controller_reference(controller_param)
- controller_param
+ controller_param.params[:controller]
end
def dispatch(controller, action, env)