Bug #2091: Method is not defined inside method_added
http://redmine.ruby-lang.org/issues/show/2091

Author: James M. Lawrence
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2009-09-11 trunk 24854) [-darwin9.6.0]

% patch -p0 < test_module.patch 
patching file test/ruby/test_module.rb

% ruby19 -v -W0 ./test/ruby/test_module.rb
ruby 1.9.1p281 (2009-08-09 revision 24476) [i386-darwin9.6.0]
Loaded suite ./test/ruby/test_module
Started
.........................................................
Finished in 0.139917 seconds.

57 tests, 199 assertions, 0 failures, 0 errors, 0 skips

% ./ruby -v -W0 ./test/ruby/test_module.rb
ruby 1.9.2dev (2009-09-11 trunk 24854) [-darwin9.6.0]
Loaded suite ./test/ruby/test_module
Started
.....................................F...................
Finished in 0.142524 seconds.

  1) Failure:
test_method_added(TestModule) [./test/ruby/test_module.rb:773]:
<[:f]> expected but was
<[]>.

57 tests, 193 assertions, 1 failures, 0 errors, 0 skips


----------------------------------------
http://redmine.ruby-lang.org