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

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