Sha256: 281b79ef58c17a36f9687bfc7febe50004729e3166ae23ce17aa5929a87d8c0a

Contents?: true

Size: 425 Bytes

Versions: 11

Compression:

Stored size: 425 Bytes

Contents

require 'facets/string/pathize'
require 'test/unit'

class TC_String_Methodize < Test::Unit::TestCase

  def test_pathize_modulename
    a = "Foo::Base"
    r = "foo/base"
    assert_equal(r, a.pathize)
  end

  def test_pathize_pathname
    a = "foo/base"
    r = "foo/base"
    assert_equal(r, a.pathize)
  end

  def test_pathize_namespace
    a = "foo__base"
    r = "foo/base"
    assert_equal(r, a.pathize)
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/string/test_pathize.rb
facets-2.8.3 test/core/string/test_pathize.rb
facets-2.8.2 test/core/string/test_pathize.rb
facets-2.8.1 test/core/string/test_pathize.rb
facets-2.8.0 test/core/string/test_pathize.rb
facets-2.7.0 test/core/string/test_pathize.rb
facets-2.6.0 test/core/string/test_pathize.rb
facets-2.4.5 test/core/string/test_pathize.rb
facets-2.5.1 test/core/string/test_pathize.rb
facets-2.5.0 test/core/string/test_pathize.rb
facets-2.5.2 test/core/string/test_pathize.rb