Project

General

Profile

Feature #2643 ยป test-unit-redefinition-check.patch

mame (Yusuke Endoh), 01/25/2010 07:41 PM

View differences:

lib/test/unit/testcase.rb
def self.test_order
:sorted
end
Methods = {}
def self.method_added(name)
return unless name.to_s[/\Atest_/]
Methods[self] ||= {}
if Methods[self][name]
warn("test/unit warning: method #{ self }##{ name } is redefined")
end
Methods[self][name] = true
end
end
end
end
    (1-1/1)