Sha256: 1475f81f00150556f892bdf96656d019c05903426ef2855154457481299f5ba6
Contents?: true
Size: 413 Bytes
Versions: 16
Compression:
Stored size: 413 Bytes
Contents
require 'facets/string/snakecase.rb' require 'test/unit' class TestStringCase < Test::Unit::TestCase def test_snakecase assert_equal( 'my_module/my_class', 'MyModule::MyClass'.snakecase ) assert_equal( 'uri', 'URI'.snakecase ) assert_equal( '/my_class', '::MyClass'.snakecase ) assert_equal( '/my_module/my_class/', '/my_module/my_class/'.snakecase ) end end
Version data entries
16 entries across 16 versions & 1 rubygems