diff options
author | Jeremy Holland <jeremy@jeremypholland.com> | 2010-10-31 22:16:55 -0500 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-03 10:43:45 -0700 |
commit | ea0faa2055fbbe6ac9ebe960ddf4bea8adda287a (patch) | |
tree | 288788e1c0fdcbc744b856ae462aee95c8d6a5c6 /activesupport/test/test_xml_mini.rb | |
parent | 208fb2920d6c6c6be97a7086cea24f4c8220010c (diff) | |
download | rails-ea0faa2055fbbe6ac9ebe960ddf4bea8adda287a.tar.gz rails-ea0faa2055fbbe6ac9ebe960ddf4bea8adda287a.tar.bz2 rails-ea0faa2055fbbe6ac9ebe960ddf4bea8adda287a.zip |
Allowing to_xml :camelize option to be set to :lower to enable lower-camelcase tags [#5903 state:resolved]
Diffstat (limited to 'activesupport/test/test_xml_mini.rb')
-rw-r--r-- | activesupport/test/test_xml_mini.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/test_xml_mini.rb b/activesupport/test/test_xml_mini.rb index 585eb15c6e..b14a3e1546 100644 --- a/activesupport/test/test_xml_mini.rb +++ b/activesupport/test/test_xml_mini.rb @@ -18,8 +18,8 @@ class XmlMiniTest < Test::Unit::TestCase assert_equal "MyKey", ActiveSupport::XmlMini.rename_key("my_key", :camelize => true) end - def test_rename_key_camelizes_with_camelize_true - assert_equal "MyKey", ActiveSupport::XmlMini.rename_key("my_key", :camelize => true) + def test_rename_key_lower_camelizes_with_camelize_lower + assert_equal "myKey", ActiveSupport::XmlMini.rename_key("my_key", :camelize => :lower) end def test_rename_key_does_not_dasherize_leading_underscores |