aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorMichael Schuerig <michael@schuerig.de>2012-04-29 18:30:57 +0200
committerAndrew White <andyw@pixeltrix.co.uk>2012-04-29 20:20:59 +0100
commit529a3ee50eeb7db5a78afeb5da38fd71b42e7ea2 (patch)
tree0060ca6dd28a3c7f1bb90fb9e5737a49a039005e /actionpack/lib/action_controller
parentd99affed2f7400f6b39e7b373507e76df34783e3 (diff)
downloadrails-529a3ee50eeb7db5a78afeb5da38fd71b42e7ea2.tar.gz
rails-529a3ee50eeb7db5a78afeb5da38fd71b42e7ea2.tar.bz2
rails-529a3ee50eeb7db5a78afeb5da38fd71b42e7ea2.zip
Fix controller_class_name for anonymous controllers.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_case.rb2
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)