Methods
T
Instance Public methods
test_rename_key_camelizes_with_camelize_true()
# File activesupport/test/xml_mini_test.rb, line 22
def test_rename_key_camelizes_with_camelize_true
  assert_equal "MyKey", ActiveSupport::XmlMini.rename_key("my_key", :camelize => true)
end
test_rename_key_dasherizes_by_default()
# File activesupport/test/xml_mini_test.rb, line 10
def test_rename_key_dasherizes_by_default
  assert_equal "my-key", ActiveSupport::XmlMini.rename_key("my_key")
end
test_rename_key_does_not_dasherize_leading_underscores()
# File activesupport/test/xml_mini_test.rb, line 34
def test_rename_key_does_not_dasherize_leading_underscores
  assert_equal "_id", ActiveSupport::XmlMini.rename_key("_id")
end
test_rename_key_does_not_dasherize_multiple_leading_underscores()
# File activesupport/test/xml_mini_test.rb, line 50
def test_rename_key_does_not_dasherize_multiple_leading_underscores
  assert_equal "__id", ActiveSupport::XmlMini.rename_key("__id")
end
test_rename_key_does_not_dasherize_multiple_trailing_underscores()
# File activesupport/test/xml_mini_test.rb, line 54
def test_rename_key_does_not_dasherize_multiple_trailing_underscores
  assert_equal "id__", ActiveSupport::XmlMini.rename_key("id__")
end
test_rename_key_does_not_dasherize_trailing_underscores()
# File activesupport/test/xml_mini_test.rb, line 42
def test_rename_key_does_not_dasherize_trailing_underscores
  assert_equal "id_", ActiveSupport::XmlMini.rename_key("id_")
end
test_rename_key_does_nothing_with_dasherize_false()
# File activesupport/test/xml_mini_test.rb, line 18
def test_rename_key_does_nothing_with_dasherize_false
  assert_equal "my_key", ActiveSupport::XmlMini.rename_key("my_key", :dasherize => false)
end
test_rename_key_does_nothing_with_dasherize_true()
# File activesupport/test/xml_mini_test.rb, line 14
def test_rename_key_does_nothing_with_dasherize_true
  assert_equal "my-key", ActiveSupport::XmlMini.rename_key("my_key", :dasherize => true)
end
test_rename_key_lower_camelizes_with_camelize_lower()
# File activesupport/test/xml_mini_test.rb, line 26
def test_rename_key_lower_camelizes_with_camelize_lower
  assert_equal "myKey", ActiveSupport::XmlMini.rename_key("my_key", :camelize => :lower)
end
test_rename_key_lower_camelizes_with_camelize_upper()
# File activesupport/test/xml_mini_test.rb, line 30
def test_rename_key_lower_camelizes_with_camelize_upper
  assert_equal "MyKey", ActiveSupport::XmlMini.rename_key("my_key", :camelize => :upper)
end
test_rename_key_with_leading_underscore_dasherizes_interior_underscores()
# File activesupport/test/xml_mini_test.rb, line 38
def test_rename_key_with_leading_underscore_dasherizes_interior_underscores
  assert_equal "_my-key", ActiveSupport::XmlMini.rename_key("_my_key")
end
test_rename_key_with_trailing_underscore_dasherizes_interior_underscores()
# File activesupport/test/xml_mini_test.rb, line 46
def test_rename_key_with_trailing_underscore_dasherizes_interior_underscores
  assert_equal "my-key_", ActiveSupport::XmlMini.rename_key("my_key_")
end