diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-07-01 12:14:34 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-07-01 12:14:34 -0700 |
commit | 882dd4e6054470ee56c46ab1432861952c81b633 (patch) | |
tree | d107ff755f94478a79b3dd666216b006219d9704 /activesupport/test/inflector_test_cases.rb | |
parent | 7583a24ee0ea85d55a5e235c3082f1b67d3d7694 (diff) | |
download | rails-882dd4e6054470ee56c46ab1432861952c81b633.tar.gz rails-882dd4e6054470ee56c46ab1432861952c81b633.tar.bz2 rails-882dd4e6054470ee56c46ab1432861952c81b633.zip |
ensure Inflector.camelize works with symbols [#2856 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
Diffstat (limited to 'activesupport/test/inflector_test_cases.rb')
-rw-r--r-- | activesupport/test/inflector_test_cases.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/test/inflector_test_cases.rb b/activesupport/test/inflector_test_cases.rb index 584cbff3e7..2fa94b8e9c 100644 --- a/activesupport/test/inflector_test_cases.rb +++ b/activesupport/test/inflector_test_cases.rb @@ -117,6 +117,13 @@ module InflectorTestCases "area51_controller" => "area51Controller" } + SymbolToLowerCamel = { + :product => 'product', + :special_guest => 'specialGuest', + :application_controller => 'applicationController', + :area51_controller => 'area51Controller' + } + CamelToUnderscoreWithoutReverse = { "HTMLTidy" => "html_tidy", "HTMLTidyGenerator" => "html_tidy_generator", |