diff options
author | Xavier Noria <fxn@hashref.com> | 2011-06-24 14:19:42 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-06-24 14:19:42 -0700 |
commit | 370b380306e03afdf77f29005f33b90a174592f0 (patch) | |
tree | d31280f05051630f66a28067a572f1b4ef5021ac /activesupport/test/inflector_test_cases.rb | |
parent | d446c798a5ef6c253c56d3b6a607073a8a92dcf2 (diff) | |
parent | d38ca78dbd99be11e64652163924e9456a7a2362 (diff) | |
download | rails-370b380306e03afdf77f29005f33b90a174592f0.tar.gz rails-370b380306e03afdf77f29005f33b90a174592f0.tar.bz2 rails-370b380306e03afdf77f29005f33b90a174592f0.zip |
Merge pull request #1648 from dlee/acronyms
Inflector support for acronyms (Issue #1366)
Diffstat (limited to 'activesupport/test/inflector_test_cases.rb')
-rw-r--r-- | activesupport/test/inflector_test_cases.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/test/inflector_test_cases.rb b/activesupport/test/inflector_test_cases.rb index ec9d92794c..391e402645 100644 --- a/activesupport/test/inflector_test_cases.rb +++ b/activesupport/test/inflector_test_cases.rb @@ -168,6 +168,7 @@ module InflectorTestCases StringToParameterizeWithNoSeparator = { "Donald E. Knuth" => "donaldeknuth", + "With-some-dashes" => "withsomedashes", "Random text with *(bad)* characters" => "randomtextwithbadcharacters", "Trailing bad characters!@#" => "trailingbadcharacters", "!@#Leading bad characters" => "leadingbadcharacters", @@ -179,6 +180,8 @@ module InflectorTestCases StringToParameterizeWithUnderscore = { "Donald E. Knuth" => "donald_e_knuth", "Random text with *(bad)* characters" => "random_text_with_bad_characters", + "With-some-dashes" => "with-some-dashes", + "Retain_underscore" => "retain_underscore", "Trailing bad characters!@#" => "trailing_bad_characters", "!@#Leading bad characters" => "leading_bad_characters", "Squeeze separators" => "squeeze_separators", |