Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.711 kB
#!/usr/bin/env ruby
Autotest.add_hook :initialize do |autotest|
%w{.git .DS_Store Gemfile bin doc html}.each do |exception|
autotest.add_exception(exception)
end
autotest.clear_mappings
autotest.add_mapping(/^test.*\/.*_test\.rb$/) { |filename, _| filename }
autotest.add_mapping(/test_helper.rb/) { |f, _| autotest.files_matching(/test\/.*_test\.rb$/) }
autotest.add_mapping(/^lib\/vanity\/(.*)\.rb/) do |filename, _|
file = File.basename(filename, '.rb')
dir = File.split(File.dirname(filename)).last
autotest.files_matching %r%^test/(#{file}|#{dir})_test.rb$%
end
end
# Don't run entire test suite when going from red to green
class Autotest
def tainted
false
end
end
Jump to Line
Something went wrong with that request. Please try again.