# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/kernel/metaclass.rb # # Extracted Fri Mar 24 23:42:50 UTC 2006 # Unit Tools Reap Test Extractor # require 'facets/core/kernel/metaclass.rb' require 'test/unit' class TCKernel < Test::Unit::TestCase def test_metaclass o = Object.new assert_equal( (class << o; self; end), o.metaclass ) #assert_nothing_raised do # o.metaclass_eval{ @@a = "test" } #end #assert_nothing_raised do # o.define_metaclass_method(:testing){ |x| x + 1 } #end #assert_equal(2, o.testing(1) ) end end