2011-04-18 13:32:43 +00:00
|
|
|
Autotest.add_hook(:initialize) do |at|
|
|
|
|
at.add_mapping(%r{bin/(.*)}, true) do |filename, matches|
|
|
|
|
at.files_matching(%r{spec/bin/#{matches[1]}_spec\.rb})
|
|
|
|
end
|
2011-04-23 15:13:54 +00:00
|
|
|
|
|
|
|
at.add_mapping(%r{spec/(.*)}, true) do |filename, matches|
|
|
|
|
at.files_matching(%r{#{filename}})
|
|
|
|
end
|
|
|
|
|
|
|
|
at.add_mapping(%r{templates/.*}, true) do |filename, matches|
|
|
|
|
at.files_matching(%r{spec/bin/.*_spec\.rb})
|
|
|
|
end
|
2011-04-18 13:32:43 +00:00
|
|
|
end
|