Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

For some reason autotest wasn't catching changes properly.

Adding explicit mappings seemed to fix the problem.
  • Loading branch information...
commit 846618c846ce1b04591147553947c5dde2ecb18b 1 parent a2de6bd
Phillip Toland authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.