Skip to content

Commit

Permalink
Dont do underscore and camelize, only camelize is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
semaperepelitsa committed Jan 31, 2012
1 parent d0706c3 commit 46fc0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46fc0f2

Please sign in to comment.