Sha256: 805fa3d92c337331b352c8bf28493fab2520a58c1133cf00232405a0cd550724
Contents?: true
Size: 1020 Bytes
Versions: 1
Compression:
Stored size: 1020 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/kernel/methods.rb # # Extracted Mon Jul 03 00:56:56 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/kernel/methods.rb' require 'test/unit' class TC_Methods < Test::Unit::TestCase class O def a ; end end $o = O.new # get a hold of the original definition _before require_ $imF = $o.method( :methods ) def test_instance_methods assert_equal( $imF.call.sort, $o.methods ) end def test_public_instance_methods assert_equal( $o.public_methods.sort, $o.methods(:public) ) end def test_private_instance_methods assert_equal( $o.private_methods.sort, $o.methods(:private) ) end def test_protected_instance_methods assert_equal( $o.protected_methods.sort, $o.methods(:protected) ) end def test_local_instance_methods assert_equal( ["a"], $o.methods(:local) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.4.4 | test/lib/facets/core/kernel/test_methods.rb |