/vendor/gems/facets-2.4.5/test/core/kernel/test_instance_class.rb
Ruby | 12 lines | 8 code | 4 blank | 0 comment | 0 complexity | 72d6be1d246f7d8ca05d201a494d5c8b MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- 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