Sha256: b5516bed7f5395d19b1d72b96c4ece475a373ff3a5d3cc10872aa60025b5e6cd

Contents?: true

Size: 326 Bytes

Versions: 11

Compression:

Stored size: 326 Bytes

Contents

require 'facets/module/integrate'
require 'test/unit'

class Test_Module_Integrate < Test::Unit::TestCase

  module M
    def x ; 1 ; end
  end

  class C
    integrate M do
      rename :y, :x
    end
  end

  def test_integrate
    c = C.new
    assert_raises( NoMethodError ) { c.x }
    assert_equal( 1, c.y )
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/module/test_integrate.rb
facets-2.8.3 test/core/module/test_integrate.rb
facets-2.8.2 test/core/module/test_integrate.rb
facets-2.8.1 test/core/module/test_integrate.rb
facets-2.8.0 test/core/module/test_integrate.rb
facets-2.7.0 test/core/module/test_integrate.rb
facets-2.6.0 test/core/module/test_integrate.rb
facets-2.4.5 test/core/module/test_integrate.rb
facets-2.5.1 test/core/module/test_integrate.rb
facets-2.5.0 test/core/module/test_integrate.rb
facets-2.5.2 test/core/module/test_integrate.rb