Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (20 sloc) 0.676 kB
c1e552b @sam Options to make autotest work better. Thanks Geoffrey Dagley!
sam authored
1 Autotest.add_hook :initialize do |at|
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
2 ignore = %w[ .git burn www log plugins script tasks bin CHANGELOG FAQ MIT-LICENSE PERFORMANCE QUICKLINKS README ]
3
c1e552b @sam Options to make autotest work better. Thanks Geoffrey Dagley!
sam authored
4 unless ENV['AUTOTEST'] == 'integration'
5 ignore << 'spec/integration'
6 end
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
7
8 ignore.each do |exception|
c1e552b @sam Options to make autotest work better. Thanks Geoffrey Dagley!
sam authored
9 at.add_exception(exception)
10 end
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
11
c1e552b @sam Options to make autotest work better. Thanks Geoffrey Dagley!
sam authored
12 at.clear_mappings
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
13
14 at.add_mapping(%r{^spec/.+_spec\.rb$}) do |filename,_|
15 filename
16 end
17
18 at.add_mapping(%r{^lib/data_mapper/(.+)\.rb$}) do |_,match|
19 [ "spec/unit/#{match[1]}_spec.rb" ] +
20 at.files_matching(%r{^spec/integration/.+_spec\.rb$})
21 end
22
23 at.add_mapping(%r{^spec/spec_helper\.rb$}) do
24 at.files_matching(%r{^spec/.+_spec\.rb$})
25 end
26 end
Something went wrong with that request. Please try again.