Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.676 kB
Autotest.add_hook :initialize do |at|
ignore = %w[ .git burn www log plugins script tasks bin CHANGELOG FAQ MIT-LICENSE PERFORMANCE QUICKLINKS README ]
unless ENV['AUTOTEST'] == 'integration'
ignore << 'spec/integration'
end
ignore.each do |exception|
at.add_exception(exception)
end
at.clear_mappings
at.add_mapping(%r{^spec/.+_spec\.rb$}) do |filename,_|
filename
end
at.add_mapping(%r{^lib/data_mapper/(.+)\.rb$}) do |_,match|
[ "spec/unit/#{match[1]}_spec.rb" ] +
at.files_matching(%r{^spec/integration/.+_spec\.rb$})
end
at.add_mapping(%r{^spec/spec_helper\.rb$}) do
at.files_matching(%r{^spec/.+_spec\.rb$})
end
end
Jump to Line
Something went wrong with that request. Please try again.