Permalink
Browse files

Dont do underscore and camelize, only camelize is fine

  • Loading branch information...
1 parent d0706c3 commit 46fc0f22e2e59234bdc37a58b04038caf5829f4b @semaperepelitsa semaperepelitsa committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_case.rb
@@ -351,7 +351,7 @@ module ClassMethods
def tests(controller_class)
case controller_class
when String, Symbol
- self.controller_class = "#{controller_class.to_s.underscore}_controller".camelize.constantize
+ self.controller_class = "#{controller_class.to_s.camelize}Controller".constantize
when Class
self.controller_class = controller_class
else

0 comments on commit 46fc0f2

Please sign in to comment.