diff options
author | Michael Schuerig <michael@schuerig.de> | 2012-04-29 18:30:57 +0200 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-04-29 20:20:59 +0100 |
commit | 529a3ee50eeb7db5a78afeb5da38fd71b42e7ea2 (patch) | |
tree | 0060ca6dd28a3c7f1bb90fb9e5737a49a039005e /actionpack/lib | |
parent | d99affed2f7400f6b39e7b373507e76df34783e3 (diff) | |
download | rails-529a3ee50eeb7db5a78afeb5da38fd71b42e7ea2.tar.gz rails-529a3ee50eeb7db5a78afeb5da38fd71b42e7ea2.tar.bz2 rails-529a3ee50eeb7db5a78afeb5da38fd71b42e7ea2.zip |
Fix controller_class_name for anonymous controllers.
Diffstat (limited to 'actionpack/lib')
-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 bef5ad03fb..d2581296cf 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -472,7 +472,7 @@ module ActionController parameters ||= {} controller_class_name = @controller.class.anonymous? ? - "anonymous_controller" : + "anonymous" : @controller.class.name.underscore.sub(/_controller$/, '') @request.assign_parameters(@routes, controller_class_name, action.to_s, parameters) |