Permalink
Browse files

Merge pull request #10478 from cainlevy/patch-1

use canonical #controller_path logic in controller test cases
  • Loading branch information...
2 parents 0f97ac6 + a145955 commit 8d85baa0e317c5baa3b8671d7fdd79e36f7058c7 @rafaelfranca rafaelfranca committed May 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_case.rb
@@ -558,7 +558,7 @@ def process(action, http_method = 'GET', *args)
parameters ||= {}
controller_class_name = @controller.class.anonymous? ?
"anonymous" :
- @controller.class.name.underscore.sub(/_controller$/, '')
+ @controller.class.controller_path
@request.assign_parameters(@routes, controller_class_name, action.to_s, parameters)

0 comments on commit 8d85baa

Please sign in to comment.