From: Yusuke ENDOH Date: 2010-01-25T23:15:13+09:00 Subject: [ruby-core:27803] Re: [Feature #2643] test/unit redefinition check of test_* method 2010/1/25 Benoit Daloze : >> This leads to a loss of a valuable chance of test. It is good for >> test/unit to detect and warn such a redefinition. > > I think you can already see them with warning enabled: > (in Ruby 1.9.2) > test.rb:163: warning: method redefined; discarding old test_one > test.rb:160: warning: previous definition of test_one was here > (in 1.8.7) > test.rb:163: warning: method redefined; discarding old test_one The warning is very forgetful. It is waste of time and intelligence for all test/unit users to enable the warning. In addition, method redefinition is not always wrong. But, it is reasonable to enable all warning during test. If so, it is also good for test/unit to enable warning by default, I think. -- Yusuke ENDOH