Sha256: 6d7342110089ec79682604e7eb89e6d69d0e8a60ff18b5edca707ea1e412fba7
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/preinitialize.rb # # Extracted Tue Jun 20 15:12:27 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/more/preinitialize.rb' require 'test/unit' class TC_Preinitalize < Test::Unit::TestCase module M def preinitialize @a = 10 end end class X include M def a ; @a ; end end class Y < X def initialize super end end def test_01 x = X.new assert_equal( 10, x.a ) end def test_01 y = Y.new assert_equal( 10, y.a ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.4.2 | test/lib/facets/more/test_preinitialize.rb |