Sha256: 9efa381373927f2fc86b200f59a104f9b7d5aeb3292b57fbabe6af034d7c82ad

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/kernel/metaclass.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/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


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 test/lib/nano/kernel/test_metaclass.rb