Sha256: 4b4feef0b950bc72b790421bc7c2b47bd84fd92ee13ebe1db075cca88f727934

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

require 'facets/kernel/method'
require 'test/unit'

class TestKernelMethod < Test::Unit::TestCase

  class TestWith
    def foo ; end
  end

  def test_method!
    t = TestWith.new
    assert_equal( t.method!(:foo).__id__, t.method!(:foo).__id__ )
    assert_not_equal( t.method(:foo).__id__, t.method(:foo).__id__ )
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/kernel/test_method.rb
facets-2.8.3 test/core/kernel/test_method.rb
facets-2.8.2 test/core/kernel/test_method.rb
facets-2.8.1 test/core/kernel/test_method.rb
facets-2.8.0 test/core/kernel/test_method.rb
facets-2.7.0 test/core/kernel/test_method.rb