Skip to content

Commit

Permalink
For some reason autotest wasn't catching changes properly.
Browse files Browse the repository at this point in the history
Adding explicit mappings seemed to fix the problem.
  • Loading branch information
Phillip Toland committed Jan 19, 2009
1 parent a2de6bd commit 846618c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .autotest
Original file line number Diff line number Diff line change
@@ -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.