Sha256: 2d6c41715167a04dc1c1455297f0b4be5c7dc104fed68b7a9f3756fada739126

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/kernel/metaclass.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/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-1.0.3 packages/core/test/lib/facet/kernel/test_metaclass.rb