Sha256: 99e318196f599f792e65a45a575e69b45897ea8c45afe3f16b985bb8740614c3
Contents?: true
Size: 1016 Bytes
Versions: 1
Compression:
Stored size: 1016 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/kernel/methods.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # 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.8.49 | test/lib/facets/core/kernel/test_methods.rb |