class Module
:nodoc:
def infect_an_assertion meth, new_name, dont_flip = false # :nodoc:
:nodoc:
def infect_an_assertion meth, new_name, dont_flip = false # :nodoc: # warn "%-22p -> %p %p" % [meth, new_name, dont_flip] self.class_eval <<-EOM def #{new_name} *args, &block return MiniTest::Spec.current.#{meth}(*args, &self) if Proc === self return MiniTest::Spec.current.#{meth}(args.first, self) if args.size == 1 unless #{!!dont_flip} return MiniTest::Spec.current.#{meth}(self, *args) end EOM end
def infect_with_assertions(pos_prefix, neg_prefix,
def infect_with_assertions(pos_prefix, neg_prefix, skip_re, dont_flip_re = /\c0/, map = {}) abort "infect_with_assertions is dead. Use infect_an_assertion directly" end