Sha256: 0cca76895ec28a247b0bbf763ed180bb886a9361d7fab7b5485741c0f8aad3d5
Contents?: true
Size: 439 Bytes
Versions: 11
Compression:
Stored size: 439 Bytes
Contents
require 'facets/string/methodize' require 'test/unit' class TC_String_Methodize < Test::Unit::TestCase def test_methodize_modulename a = "FooBase" r = "foo_base" assert_equal(r, a.methodize) end def test_methodize_pathname a = "foo/base" r = "foo__base" assert_equal(r, a.methodize) end def test_methodize_namespace a = "Foo::Base" r = "foo__base" assert_equal(r, a.methodize) end end
Version data entries
11 entries across 11 versions & 1 rubygems