Skip to content
Browse files

Added fixes to .autotest to deal with unit_diff suckage and test clas…

…s/path wonkiness
  • Loading branch information...
1 parent 67bbeee commit a08b531c795a94e1364664bdd3272aa428044dc2 @zenspider zenspider committed Feb 10, 2011
Showing with 8 additions and 4 deletions.
  1. +8 −4 .autotest
View
12 .autotest
@@ -4,6 +4,7 @@ require 'autotest/restart'
Autotest.add_hook :initialize do |at|
at.testlib = 'minitest/autorun'
+ at.unit_diff = "cat -u"
at.add_exception %r%/\.git/%
at.add_exception %r%/\.svn/%
@@ -25,9 +26,12 @@ Autotest.add_hook :initialize do |at|
at.files_matching %r%^test/rubygems/test_(.*)\.rb$%
end
- # at.add_mapping %r%^test/support/(.*).rb$% do |_, m|
- # files_matching %r%^test/test_(.*)\.rb%%
- # end
-
at.find_directories = ARGV unless ARGV.empty?
end
+
+class Autotest
+ alias :old_path_to_classname :path_to_classname
+ def path_to_classname s
+ old_path_to_classname(s.sub(/test.rubygems.test_/, ""))
+ end
+end

0 comments on commit a08b531

Please sign in to comment.
Something went wrong with that request. Please try again.