aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/inflector_test_cases.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-09-11 16:03:38 +0200
committerMichael Koziarski <michael@koziarski.com>2008-09-11 17:10:17 +0200
commit1ddde91303883b47f2215779cf45d7008377bd0d (patch)
treea1a389cba8c08504bad19fcf4d8340cc554e8cee /activesupport/test/inflector_test_cases.rb
parent46bac29de7e39bd2af6ed6cfba0498a921b5213e (diff)
downloadrails-1ddde91303883b47f2215779cf45d7008377bd0d.tar.gz
rails-1ddde91303883b47f2215779cf45d7008377bd0d.tar.bz2
rails-1ddde91303883b47f2215779cf45d7008377bd0d.zip
Flesh out the parameterize method to support non-ascii text and underscores.
Diffstat (limited to 'activesupport/test/inflector_test_cases.rb')
-rw-r--r--activesupport/test/inflector_test_cases.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/test/inflector_test_cases.rb b/activesupport/test/inflector_test_cases.rb
index d399c90385..8057809dbd 100644
--- a/activesupport/test/inflector_test_cases.rb
+++ b/activesupport/test/inflector_test_cases.rb
@@ -144,7 +144,10 @@ module InflectorTestCases
StringToParameterized = {
"Donald E. Knuth" => "donald-e-knuth",
- "Random text with *(bad)* characters" => "random-text-with-bad-characters"
+ "Random text with *(bad)* characters" => "random-text-with-bad-characters",
+ "Malmö" => "malmo",
+ "Garçons" => "garcons",
+ "Allow_Under_Scores" => "allow_under_scores"
}
UnderscoreToHuman = {