Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 301 Bytes
Autotest.add_hook :initialize do |at|
at.clear_mappings
at.add_mapping(%r%^spec/(.*)_spec.rb$%) {|filename, _| filename }
at.add_mapping(%r%^lib/(.*).rb$%) {|_, match| "spec/#{match[1]}_spec.rb" }
at.add_mapping(%r%^spec/spec_helper.rb$%) { at.files_matching(%r%^spec/(.*)_spec.rb$%) }
end