Sha256: 9c0b0bf017329b9fe0f21c440a25326b33bb0512ea0e3faed3a3a05b60145d43

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

# Test for facets/class/descendents.rb

require 'facets/class/descendents.rb'

require 'test/unit'

class TestClassDescendents < Test::Unit::TestCase

  class A ; end
  class B < A ; end
  class C < B ; end

  def test_descendents
    assert_equal( [C,B], A.descendents )
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.3.0 test/core/class/test_descendents.rb
facets-2.2.1 test/unit/class/test_descendents.rb