Sha256: b3ae73576d0a3183174fe67f490db1bbc28a48efd2c90da47216359058f2a19b
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/kernel/supermethod.rb # # Extracted Tue Jul 25 10:07:15 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.0 | test/lib/facets/core/kernel/test_supermethod.rb |