autotestでall_good時にrerun_all_testsをしないようにする
の改良版です。handle_resultsメソッドの実装の変化を、
なるべく吸収できるような書き方に変えました。~/.autotestに書いておくと良いかもしれません。
ruby>>
class Autotest
alias_method :handle_results_old, :handle_results
undef_method :handle_results
def handle_results(*args, &block)
handle_results_old(*args, &block)
self.tainted = !self.files_to_test.empty?
end
end
<<--
posted by
genki on Tue 15 Jul 2008 at 21:52 with 0 comments