Browse files

For some reason autotest wasn't catching changes properly.

Adding explicit mappings seemed to fix the problem.
  • Loading branch information...
1 parent a2de6bd commit 846618c846ce1b04591147553947c5dde2ecb18b Phillip Toland committed Jan 19, 2009
Showing with 15 additions and 0 deletions.
  1. +15 −0 .autotest
View
15 .autotest
@@ -0,0 +1,15 @@
+Autotest.add_hook :initialize do |at|
+ at.clear_mappings
+
+ at.add_mapping(%r{^spec/.+_spec\.rb$}) do |filename,_|
+ filename
+ end
+
+ at.add_mapping(%r{^lib/patron/(.+)\.rb$}) do |_,match|
+ [ "spec/#{match[1]}_spec.rb" ]
+ end
+
+ at.add_mapping(%r{^spec/spec_helper\.rb$}) do
+ at.files_matching(%r{^spec/.+_spec\.rb$})
+ end
+end

0 comments on commit 846618c

Please sign in to comment.