Skip to content
Newer
Older
100644 24 lines (19 sloc) 517 Bytes
f5a7911 @rtomayko Let's get this party started ...
rtomayko authored Jul 16, 2008
1 Autotest.add_hook :initialize do |t|
1ec0aaf @rtomayko aimlessly walking around in the dark, with no pants
rtomayko authored Jul 18, 2008
2 t.clear_mappings
825fb93 @rtomayko add DiskBackedMemory store; other small tweaks and cleanup
rtomayko authored Jul 23, 2008
3 t.add_exception(/^(?:\/\.)?\.git.*/)
4 t.add_exception(/^(?:\/\.)?\[\..*/)
f5a7911 @rtomayko Let's get this party started ...
rtomayko authored Jul 17, 2008
5 t.add_mapping(/^lib\/.*\.rb$/) { |fn, _|
6 t.files_matching(/^test\/#{File.basename(fn, '.rb')}_test.rb$/) }
7 t.add_mapping(/^test\/.*_test\.rb$/) { |fn, _| fn }
1ec0aaf @rtomayko aimlessly walking around in the dark, with no pants
rtomayko authored Jul 18, 2008
8
9 def t.path_to_classname(s)
10 case s
11 when 'test/test_cache.rb'
12 "Rack::Cache"
13 when /test\/(.*)_test\.rb/
14 "Rack::Cache::#{$1.capitalize}"
15 else
16 super
17 end
18 end
f5a7911 @rtomayko Let's get this party started ...
rtomayko authored Jul 17, 2008
19 end
20
1ec0aaf @rtomayko aimlessly walking around in the dark, with no pants
rtomayko authored Jul 18, 2008
21
22
f5a7911 @rtomayko Let's get this party started ...
rtomayko authored Jul 17, 2008
23 # vim: ft=ruby
Something went wrong with that request. Please try again.