Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dont do underscore and camelize, only camelize is fine

  • Loading branch information...
commit 46fc0f22e2e59234bdc37a58b04038caf5829f4b 1 parent d0706c3
@semaperepelitsa semaperepelitsa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/test_case.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.