Sha256: f4116817198f3e0ed12780b1f0c62f8b9fab8ea58e862de985dd2d9214530fb6
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/kernel/supermethod.rb # # Extracted Wed Jul 05 11:47:50 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/kernel/supermethod.rb' require 'test/unit' class TCKernel < Test::Unit::TestCase class X ; def x ; 1 ; end ; end class Y < X ; def x ; 2 ; end ; end class Z < Y ; def x ; 3 ; end ; end def test_supermethod x = X.new z = Z.new s0 = x.method( :x ) s1 = z.supermethod( X, :x ) assert_equal( s0.call, s1.call ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.4.5 | test/lib/facets/core/kernel/test_supermethod.rb |