PageRenderTime 58ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/kernel/test_instance_class.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. require 'facets/kernel/instance_class.rb'
  2. require 'test/unit'
  3. class TestKernelInstanceClass < Test::Unit::TestCase
  4. def test_instance_class
  5. o = Object.new
  6. assert_equal( (class << o; self; end), o.instance_class )
  7. end
  8. end