Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 296 Bytes
guard 'prove' do
# prove modified test file
watch(%r{^.*\.t$})
# prove all files in t directory when some module gets modified
# watch(%r{^.*\.pm$}) { "t" }
# prove path/t/file.t when path/file.pm gets modified
watch(%r{^(.*)/([^./]+)\.pm$}) {|m| m[1] + "/t/" + m[2] + ".t"}
end