Module: String::Etest

Defined in:
lib/string_ext.rb

Instance Method Summary collapse

Instance Method Details

#test_camelizeObject



19
20
21
22
# File 'lib/string_ext.rb', line 19

def test_camelize
  assert_equal "x", "X".underscore
  assert_equal "xa_la_nder", "XaLaNder".underscore
end

#test_underscoreObject



24
25
26
27
# File 'lib/string_ext.rb', line 24

def test_underscore
  assert_equal "X", "x".camelize
  assert_equal "XaLaNder", "xa_la_nder".camelize
end