avatar

21

setup autotest to load ~/.autotest file and to look for tests with filenames like *_test.rb instead of test_*.rb, in accordance with rails standard by chrisk, 28 Jul, 2007 10:04 PM
Diff this changeset:
.autotest
      global_autotest_file = File.expand_path('~/.autotest')
load(global_autotest_file) if File.exists?(global_autotest_file)

class Autotest
  def tests_for_file(filename)
    Dir['test/**/*_test.rb']
  end
end