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