Sha256: 9ac975ef0a81634a7e43522ad799a2b82e41f820621324b2f658cd71c22a4a76

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/kernel/metaclass.rb
#
# Extracted Wed Aug 23 18:22:52 EDT 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


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.30 test/lib/facets/core/kernel/test_metaclass.rb