PageRenderTime 52ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/string/test_pathize.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. require 'facets/string/pathize'
  2. require 'test/unit'
  3. class TC_String_Methodize < Test::Unit::TestCase
  4. def test_pathize_modulename
  5. a = "Foo::Base"
  6. r = "foo/base"
  7. assert_equal(r, a.pathize)
  8. end
  9. def test_pathize_pathname
  10. a = "foo/base"
  11. r = "foo/base"
  12. assert_equal(r, a.pathize)
  13. end
  14. def test_pathize_namespace
  15. a = "foo__base"
  16. r = "foo/base"
  17. assert_equal(r, a.pathize)
  18. end
  19. end