Sha256: 80747e2310de76bfabbc23d9e8178f9048c150bd59925b100170ff6558d8b6ad
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/preinitialize.rb # # Extracted Mon Jun 05 08:14:30 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.0 | test/lib/facets/more/test_preinitialize.rb |