Sha256: 05f6be77af3f365a875781e7c03521dcecb5baf8d72bdb58dde052fed5e63c51

Contents?: true

Size: 236 Bytes

Versions: 15

Compression:

Stored size: 236 Bytes

Contents

require 'facets/kernel/instance_class.rb'
require 'test/unit'

class TestKernelInstanceClass < Test::Unit::TestCase

  def test_instance_class
    o = Object.new
    assert_equal( (class << o; self; end), o.instance_class )
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/kernel/test_instance_class.rb
facets-2.8.3 test/core/kernel/test_instance_class.rb
facets-2.8.2 test/core/kernel/test_instance_class.rb
facets-2.8.1 test/core/kernel/test_instance_class.rb
facets-2.8.0 test/core/kernel/test_instance_class.rb
facets-2.7.0 test/core/kernel/test_instance_class.rb
facets-2.6.0 test/core/kernel/test_instance_class.rb
facets-2.4.1 test/kernel/test_instance_class.rb
facets-2.4.3 test/core/kernel/test_instance_class.rb
facets-2.4.4 test/core/kernel/test_instance_class.rb
facets-2.4.2 test/core/kernel/test_instance_class.rb
facets-2.5.0 test/core/kernel/test_instance_class.rb
facets-2.4.5 test/core/kernel/test_instance_class.rb
facets-2.5.1 test/core/kernel/test_instance_class.rb
facets-2.5.2 test/core/kernel/test_instance_class.rb