Sha256: 16106d4b701576188e3bc243404b71f2f1ad2e2abb7fd24267954a84e49283e4

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

covers 'facets/string/modulize'

testcase String do

  unit :modulize => "snakecase" do
    a = "foo_bar"
    r = "FooBar"
    a.modulize.assert == r
  end

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

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

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