Sha256: bbcb134555fbf81ee75f57e3d9119a51e83239f51fc089fd480be8971b9989aa

Contents?: true

Size: 256 Bytes

Versions: 6

Compression:

Stored size: 256 Bytes

Contents

require File.dirname(__FILE__)+'/../abstract_unit'
require 'gorillib/metaprogramming/singleton_class'

class KernelTest < Test::Unit::TestCase
  def test_singleton_class
    o = Object.new
    assert_equal class << o; self end, o.singleton_class
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gorillib-0.0.7 test/metaprogramming/singleton_class_test.rb
gorillib-0.0.6 test/metaprogramming/singleton_class_test.rb
gorillib-0.0.5 test/metaprogramming/singleton_class_test.rb
gorillib-0.0.4 test/metaprogramming/singleton_class_test.rb
gorillib-0.0.3 test/metaprogramming/singleton_class_test.rb
gorillib-0.0.2 test/metaprogramming/singleton_class_test.rb