Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (18 sloc) 505 Bytes
# vim: ft=ruby
require 'autotest/growl'
Autotest.add_hook :initialize do |at|
at.testlib = 'minitest/autorun'
at.add_exception 'coverage.info'
at.add_exception 'coverage'
at.add_exception '.git'
at.clear_mappings
at.add_mapping(%r|^test/.*_spec\.rb$|) do |filename, _|
filename
end
at.add_mapping(%r|^lib/(.*)\.rb$|) do |_, match|
[ "test/#{match[1]}_spec.rb" ]
end
at.add_mapping(%r|^test/spec_helper\.rb|) do
at.files_matching( %r|^test/.*_spec\.rb| )
end
end