autotestでall_good時にrerun_all_testsをしないようにする の改良版です。 handle_resultsメソッドの実装の変化を、 なるべく吸収できるような書き方に変えました。 ~/.autotestに書いておくと良いかもしれません。

   1  class Autotest
   2    alias_method :handle_results_old, :handle_results
   3    undef_method :handle_results
   4  
   5    def handle_results(*args, &block)
   6      handle_results_old(*args, &block)
   7      self.tainted = !self.files_to_test.empty?
   8    end
   9  end

posted by Png genki on Tue 15 Jul 2008 at 21:55

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry669
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ