/vendor/gems/facets-2.4.5/test/core/string/test_pathize.rb
Ruby | 25 lines | 19 code | 6 blank | 0 comment | 0 complexity | d2463ba7ef7589f5031cfe8370cd6716 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- 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