module Minitest::RedefineDetector
Constants
- VERSION
Public Instance Methods
method_added(name)
click to toggle source
Calls superclass method
# File lib/minitest/redefine_detector.rb, line 16 def method_added(name) super return unless name.to_s.start_with?("test_") test_name = "#{self}##{name}" if @@added_test_methods.include?(test_name) raise RedefineError.new(test_name, caller) end @@added_test_methods << test_name end