Sha256: eaa95cf6c2175a0fead2a12c7803d32f8d4d5dad6ed86d249ffd1a1a3b85bfcd

Contents?: true

Size: 408 Bytes

Versions: 5

Compression:

Stored size: 408 Bytes

Contents

covers 'facets/string/modulize'

test_case String do

  method :modulize do

    test "snakecase" do
      a = "foo_bar"
      r = "FooBar"
      a.modulize.assert == r
    end

    test "path name" do
      a = "foo/bar"
      r = "Foo::Bar"
      a.modulize.assert == r
    end

    test "on methodized string" do
      a = "foo__bar"
      r = "Foo::Bar"
      a.modulize.assert == r
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/string/test_modulize.rb
facets-3.1.0 test/core/string/test_modulize.rb
facets-3.0.0 test/core/string/test_modulize.rb
facets-2.9.3 test/core/string/test_modulize.rb
facets-2.9.2 test/core/string/test_modulize.rb