diff options
author | Lance Ivy <lance@cainlevy.net> | 2013-05-05 14:18:03 -0400 |
---|---|---|
committer | Lance Ivy <lance@cainlevy.net> | 2013-05-05 14:18:03 -0400 |
commit | a145955fb7a7c3963453733b3fbac8a2c12a45d7 (patch) | |
tree | 89cb4bd82c5b56ad7d52e1438cd5f6cbdf5c90cd /actionpack | |
parent | d0096e035d43b5e5df711f0ba63f1dd95e62bb83 (diff) | |
download | rails-a145955fb7a7c3963453733b3fbac8a2c12a45d7.tar.gz rails-a145955fb7a7c3963453733b3fbac8a2c12a45d7.tar.bz2 rails-a145955fb7a7c3963453733b3fbac8a2c12a45d7.zip |
use canonical #controller_path logic in controller test cases
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 41a286f0ed..e5f1ad63c2 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -558,7 +558,7 @@ module ActionController 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) |