Sha256: 8ce55d68632d56f2b5552c4e553b73eecf7aec42db7a1a4f434fa7950f885056

Contents?: true

Size: 400 Bytes

Versions: 23

Compression:

Stored size: 400 Bytes

Contents

require 'test/unit'
require 'facets/1stclassmethod'


class Test1stClassMethod < 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

  def test_this
    assert_equal( this, method(:test_this) )
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
facets-2.6.0 test/more/test_1stclassmethod.rb
facets-2.0.0 test/unit/test_1stclassmethod.rb
facets-2.0.1 test/unit/test_1stclassmethod.rb
facets-2.0.2 test/unit/test_1stclassmethod.rb
facets-2.0.5 test/unit/test_1stclassmethod.rb
facets-2.0.3 test/unit/test_1stclassmethod.rb
facets-2.0.4 test/unit/test_1stclassmethod.rb
facets-2.1.0 test/unit/test_1stclassmethod.rb
facets-2.1.1 test/unit/test_1stclassmethod.rb
facets-2.1.2 test/unit/test_1stclassmethod.rb
facets-2.2.1 test/unit/test_1stclassmethod.rb
facets-2.4.0 test/test_1stclassmethod.rb
facets-2.1.3 test/unit/test_1stclassmethod.rb
facets-2.3.0 test/core/test_1stclassmethod.rb
facets-2.2.0 test/unit/test_1stclassmethod.rb
facets-2.4.1 test/test_1stclassmethod.rb
facets-2.4.3 test/more/test_1stclassmethod.rb
facets-2.4.2 test/more/test_1stclassmethod.rb
facets-2.4.4 test/more/test_1stclassmethod.rb
facets-2.4.5 test/more/test_1stclassmethod.rb