Sha256: 088580d8d99abbf2c382df634df77830c06aeaacc0852074cac3357b8beb3a4d

Contents?: true

Size: 293 Bytes

Versions: 5

Compression:

Stored size: 293 Bytes

Contents

covers 'facets/module/instance_method'

test_case Module do

  method :instance_method! do

    test do
      c = Class.new do
        def x; "x"; end
      end

      x1 = c.instance_method!(:x)
      x2 = c.instance_method!(:x)

      x1.object_id.assert == x2.object_id
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/module/test_instance_method.rb
facets-3.1.0 test/core/module/test_instance_method.rb
facets-3.0.0 test/core/module/test_instance_method.rb
facets-2.9.3 test/core/module/test_instance_method.rb
facets-2.9.2 test/core/module/test_instance_method.rb