Sha256: c74f764c27a8d4eadc5a73869bc4dbfbd26ba69b5ae991404f5682090414b56f
Contents?: true
Size: 951 Bytes
Versions: 1
Compression:
Stored size: 951 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/classmethods.rb # # Extracted Tue Jun 06 09:30:19 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/more/classmethods.rb' require 'test/unit' class TC_ClassMethods < Test::Unit::TestCase # fixture module N ClassMethods do def n ; 43 ; end end #extend ClassMethods end class X include N def n ; 11 ; end end module K include N ClassMethods do def n ; super + 1 ; end end end class Z include K end # tests def test_01 assert_equal( 43, N.n ) end def test_02 assert_equal( 43, X.n ) end def test_03 assert_equal( 11, X.new.n ) end def test_04 assert_equal( 44, K.n ) end def test_05 assert_equal( 44, Z.n ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.4.1 | test/lib/facets/more/test_classmethods.rb |