Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (19 sloc) 0.769 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
4 ignore.each do |exception|
c1e552b @sam Options to make autotest work better. Thanks Geoffrey Dagley!
sam authored
5 at.add_exception(exception)
6 end
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
7
c1e552b @sam Options to make autotest work better. Thanks Geoffrey Dagley!
sam authored
8 at.clear_mappings
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
9
8a8d019 Updated autotest configuration to match new spec layout
Dan Kubb authored
10 # when a spec is updated, make sure it passes
11 at.add_mapping %r{\Aspec/(.+)_spec\.rb\z} do |filename,_|
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
12 filename
13 end
14
8a8d019 Updated autotest configuration to match new spec layout
Dan Kubb authored
15 # when a file is updated, make sure it's associated public and semipublic specs pass
16 at.add_mapping %r{\Alib/dm\-core/(.+)\.rb\z} do |_,match|
17 at.files_matching %r{\Aspec/(?:semi)?public/#{match[1]}_spec\.rb\z}
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
18 end
19
8a8d019 Updated autotest configuration to match new spec layout
Dan Kubb authored
20 # when the spec configuration changes make sure all specs pass
21 at.add_mapping %r{\Aspec/spec_helper\.rb\z} do
22 at.files_matching %r{\Aspec/.+_spec\.rb\z}
81d2787 Moved unit specifications into spec/unit
Dan Kubb authored
23 end
24 end
Something went wrong with that request. Please try again.