Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 496 Bytes
Autotest.add_hook :initialize do |at|
ignore = %w[.git examples ext pkg .DS_Store CHANGELOG LICENSE VERSION.yml README.rdoc .autotest Rakefile blather.gemspec]
ignore.each { |exception| at.add_exception(exception) }
at.add_mapping(%r%^spec/.*_spec.rb$%) { |filename, _| filename }
at.add_mapping(%r%^lib/(.*)\.rb$%) { |_, m| ["spec/#{m[1]}_spec.rb"] }
at.add_mapping(%r%^spec/(spec_helper|shared/.*)\.rb$%) {
at.files_matching %r%^spec/.*_spec\.rb$%
Jump to Line
Something went wrong with that request. Please try again.