diff options
author | Semyon Perepelitsa <sema@sema.in> | 2012-01-31 18:44:34 +0800 |
---|---|---|
committer | Semyon Perepelitsa <sema@sema.in> | 2012-01-31 18:44:34 +0800 |
commit | 46fc0f22e2e59234bdc37a58b04038caf5829f4b (patch) | |
tree | 70ea59cb748609105babc7b0e6a62e2482255fd4 | |
parent | d0706c3626fcab9cd87a522071a3f6027a6fb79d (diff) | |
download | rails-46fc0f22e2e59234bdc37a58b04038caf5829f4b.tar.gz rails-46fc0f22e2e59234bdc37a58b04038caf5829f4b.tar.bz2 rails-46fc0f22e2e59234bdc37a58b04038caf5829f4b.zip |
Dont do underscore and camelize, only camelize is fine
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 2 |
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 fce6e29d5f..1e226fc336 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -351,7 +351,7 @@ module ActionController 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 |