Sha256: d4e51ea5433b5c3dae83f63a1e3dad9c71005d88875897ef1c2285ca84a179d6

Contents?: true

Size: 306 Bytes

Versions: 4

Compression:

Stored size: 306 Bytes

Contents

covers 'facets/string/snakecase'

testcase String do

  unit :snakecase do
    '/my_module/my_class/'.snakecase.assert == '/my_module/my_class/'
    'MyModule::MyClass'.snakecase.assert == 'my_module/my_class'
    '::MyClass'.snakecase.assert == '/my_class'
    'URI'.snakecase.assert == 'uri'
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/string/test_snakecase.rb
facets-2.9.0 test/core/string/test_snakecase.rb
facets-2.9.0.pre.2 test/core/string/test_snakecase.rb
facets-2.9.0.pre.1 test/core/string/test_snakecase.rb