Skip to content

Commit

Permalink
Fix controller_class_name for anonymous controllers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuerig authored and pixeltrix committed Apr 29, 2012
1 parent d99affe commit 529a3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/test_case.rb
Expand Up @@ -472,7 +472,7 @@ def process(action, http_method = 'GET', *args)

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)
Expand Down

0 comments on commit 529a3ee

Please sign in to comment.