Sha256: 5127cea74724ef2ccd1a070036530e1ffc07aafa1b21fc884e8ff79a5bf6fdf1
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/kernel/supermethod.rb # # Extracted Wed Aug 23 18:22:52 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.7.30 | test/lib/facets/core/kernel/test_supermethod.rb |